After installing boot blocks with RUN_NO_CLEAR (and handling the

potential errors) make sure to clear the stdscreen.
This commit is contained in:
martin 2019-12-15 13:39:24 +00:00
parent b04e34683a
commit 42fb6d79a5
7 changed files with 46 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.6 2019/07/13 17:13:36 martin Exp $ */
/* $NetBSD: md.c,v 1.7 2019/12/15 13:39:24 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -166,6 +166,11 @@ md_post_newfs(struct install_partition_desc *install)
process_menu(MENU_ok,
__UNCONST("Warning: disk is probably not bootable"));
wclear(stdscr);
touchwin(stdscr);
clearok(stdscr, 1);
refresh();
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.7 2019/07/13 17:13:37 martin Exp $ */
/* $NetBSD: md.c,v 1.8 2019/12/15 13:39:24 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -175,6 +175,11 @@ md_post_extract(struct install_partition_desc *install)
"/bin/dd if=%s of=/dev/reflash0c bs=512", ldr_path))
process_menu(MENU_ok, __UNCONST("Warning: the system "
"is probably not bootable"));
wclear(stdscr);
touchwin(stdscr);
clearok(stdscr, 1);
refresh();
}
return 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.8 2019/07/13 17:13:37 martin Exp $ */
/* $NetBSD: md.c,v 1.9 2019/12/15 13:39:24 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -187,6 +187,12 @@ md_post_newfs(struct install_partition_desc *install)
"/usr/sbin/installboot /dev/r%sc /usr/mdec/uboot.lif", pm->diskdev))
process_menu(MENU_ok,
__UNCONST("Warning: disk is probably not bootable"));
wclear(stdscr);
touchwin(stdscr);
clearok(stdscr, 1);
refresh();
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.6 2019/07/13 17:13:39 martin Exp $ */
/* $NetBSD: md.c,v 1.7 2019/12/15 13:39:24 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -168,6 +168,12 @@ md_post_newfs(struct install_partition_desc *install)
"/usr/mdec/installboot /dev/r%sc /usr/mdec/bootxx_ffs", pm->diskdev))
process_menu(MENU_ok,
__UNCONST("Warning: disk is probably not bootable"));
wclear(stdscr);
touchwin(stdscr);
clearok(stdscr, 1);
refresh();
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.8 2019/07/13 17:13:39 martin Exp $ */
/* $NetBSD: md.c,v 1.9 2019/12/15 13:39:24 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -190,6 +190,12 @@ md_post_newfs(struct install_partition_desc *install)
target_expand("/.bootsd"), pm->diskdev))
process_menu(MENU_ok,
__UNCONST("Warning: disk is probably not bootable"));
wclear(stdscr);
touchwin(stdscr);
clearok(stdscr, 1);
refresh();
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.6 2019/07/13 17:13:39 martin Exp $ */
/* $NetBSD: md.c,v 1.7 2019/12/15 13:39:24 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -177,6 +177,11 @@ md_post_newfs(struct install_partition_desc *install)
process_menu(MENU_ok,
__UNCONST("Warning: disk is probably not bootable"));
wclear(stdscr);
touchwin(stdscr);
clearok(stdscr, 1);
refresh();
return 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.8 2019/07/13 17:13:40 martin Exp $ */
/* $NetBSD: md.c,v 1.9 2019/12/15 13:39:24 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -276,6 +276,12 @@ md_post_newfs(struct install_partition_desc *install)
pm->diskdev))
process_menu(MENU_ok,
__UNCONST("Warning: disk is probably not bootable"));
wclear(stdscr);
touchwin(stdscr);
clearok(stdscr, 1);
refresh();
return 0;
}