Correct some oversights in the sysinst conversion. arch/alpha/md.c and

others allready had these fixes.
This commit is contained in:
garbled 1999-01-23 06:19:17 +00:00
parent 7766b60f7c
commit 10218daeef
3 changed files with 6 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.9 1999/01/21 08:02:18 garbled Exp $ */ /* $NetBSD: md.c,v 1.10 1999/01/23 06:19:17 garbled Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -264,8 +264,7 @@ void md_copy_filesystem (void)
/* Copy the instbin(s) to the disk */ /* Copy the instbin(s) to the disk */
printf("%s", msg_string(MSG_dotar)); printf("%s", msg_string(MSG_dotar));
run_prog(0, 1, "tar --one-file-system -cf - -C / . |" run_prog(0, 1, "pax -X -r -w / /mnt");
"(cd /mnt ; tar --unlink -xpf - )");
/* Copy next-stage install profile into target /.profile. */ /* Copy next-stage install profile into target /.profile. */
cp_to_target("/tmp/.hdprofile", "/.profile"); cp_to_target("/tmp/.hdprofile", "/.profile");

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.2 1999/01/21 08:02:18 garbled Exp $ */ /* $NetBSD: md.c,v 1.3 1999/01/23 06:19:17 garbled Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -139,8 +139,7 @@ void md_copy_filesystem (void)
/* Copy the instbin(s) to the disk */ /* Copy the instbin(s) to the disk */
printf ("%s", msg_string(MSG_dotar)); printf ("%s", msg_string(MSG_dotar));
run_prog (0, 1, "tar --one-file-system -cf - -C / . |" run_prog (0, 1, "pax -X -r -w / /mnt");
"(cd /mnt ; tar --unlink -xpf - )");
/* Copy next-stage install profile into target /.profile. */ /* Copy next-stage install profile into target /.profile. */
cp_to_target ("/tmp/.hdprofile", "/.profile"); cp_to_target ("/tmp/.hdprofile", "/.profile");

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.20 1999/01/21 08:02:19 garbled Exp $ */ /* $NetBSD: md.c,v 1.21 1999/01/23 06:19:18 garbled Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -417,9 +417,7 @@ void md_copy_filesystem (void)
/* test returns 0 on success */ /* test returns 0 on success */
dir_exists = (run_prog(0, 0, "test -d %s", diskimage_usr) == 0); dir_exists = (run_prog(0, 0, "test -d %s", diskimage_usr) == 0);
if (dir_exists) { if (dir_exists) {
run_prog ( 0, 1, run_prog ( 0, 1, "pax -X -r -w %s /usr", diskimage_usr);
"tar --one-file-system -cf - -C %s . | tar -xpf - -C /usr",
diskimage_usr);
} }
if (target_already_root()) { if (target_already_root()) {