* Umm, the installboot(8) run is important. Don't ignore errors!

* Use the current boot program schema.
This commit is contained in:
ross 1999-04-23 19:10:54 +00:00
parent 1c98ea4e2a
commit 944dc00f76
1 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.13 1999/04/15 05:01:04 nathanw Exp $ */
/* $NetBSD: md.c,v 1.14 1999/04/23 19:10:54 ross Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -133,13 +133,10 @@ int md_post_disklabel (void)
*/
int md_post_newfs (void)
{
const char *bootfile = target_expand("/boot"); /*XXX*/
printf (msg_string(MSG_dobootblks), diskdev);
cp_to_target("/usr/mdec/boot", "/boot");
run_prog(0, 0, NULL, "/usr/mdec/installboot %s %s /dev/r%sc",
bootfile, "/usr/mdec/bootxx", diskdev);
run_prog(0, 1, "Warning: disk is probably not bootable",
"/usr/mdec/installboot /dev/r%sc /usr/mdec/bootxx_ffs", diskdev);
return 0;
}
@ -151,7 +148,8 @@ int md_copy_filesystem (void)
/* Copy the instbin(s) to the disk */
printf ("%s", msg_string(MSG_dotar));
if (run_prog(0, 0, NULL, "pax -X -r -w -pe / /mnt") != 0)
if (run_prog(0, 0, "Warning: unexpected error",
"pax -X -r -w -pe / /mnt") != 0)
return 1;
/* Copy next-stage profile into target /.profile. */