Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib Fix PR port-sgimips/17567: sysinst wasn't installing...
details: https://anonhg.NetBSD.org/src/rev/0134f3c93c28
branches: trunk
changeset: 534154:0134f3c93c28
user: rafal <rafal%NetBSD.org@localhost>
date: Thu Jul 18 16:23:36 2002 +0000
description:
Fix PR port-sgimips/17567: sysinst wasn't installing/upgrading bootblocks on
the new disk. This requires my previous changes to sgivol to get a non-
interactive mode. While here, change the way sysinst invoked sgivol (it
called system(), now it uses run_prog()) so we don't mess up the logging
and scripting contexts.
diffstat:
distrib/sgimips/ramdisk/list | 5 +++--
distrib/utils/sysinst/arch/sgimips/md.c | 13 +++----------
2 files changed, 6 insertions(+), 12 deletions(-)
diffs (53 lines):
diff -r d64bc8f07ee3 -r 0134f3c93c28 distrib/sgimips/ramdisk/list
--- a/distrib/sgimips/ramdisk/list Thu Jul 18 16:02:42 2002 +0000
+++ b/distrib/sgimips/ramdisk/list Thu Jul 18 16:23:36 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: list,v 1.1 2002/05/21 20:54:17 rafal Exp $
+# $NetBSD: list,v 1.2 2002/07/18 16:23:36 rafal Exp $
SRCDIRS bin sbin usr.bin usr.sbin gnu/usr.bin sys/arch/sgimips/stand
@@ -47,7 +47,7 @@
PROG usr/bin/tip
PROG usr/bin/tset
-PROG usr/mdec/installboot
+PROG usr/mdec/sgivol
PROG usr/sbin/chown usr/bin/chgrp
PROG usr/sbin/chroot
@@ -55,6 +55,7 @@
# init invokes the shell as -sh
ARGVLN sh -sh
+SPECIAL sgivol srcdir sys/arch/sgimips/stand/sgivol
SPECIAL ping srcdir distrib/utils/x_ping
LIBS -ledit -lbz2 -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm
diff -r d64bc8f07ee3 -r 0134f3c93c28 distrib/utils/sysinst/arch/sgimips/md.c
--- a/distrib/utils/sysinst/arch/sgimips/md.c Thu Jul 18 16:02:42 2002 +0000
+++ b/distrib/utils/sysinst/arch/sgimips/md.c Thu Jul 18 16:23:36 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.1 2001/11/20 15:53:22 soren Exp $ */
+/* $NetBSD: md.c,v 1.2 2002/07/18 16:23:37 rafal Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -103,15 +103,8 @@
int
md_post_disklabel(void)
{
- char sgivolcmd[256];
- /* boot blocks ... */
- sprintf(sgivolcmd, "/usr/mdec/sgivol -wqf boot /usr/mdec/boot %s",
- diskdev);
- printf(msg_string(MSG_dobootblks), diskdev);
- do_system(sgivolcmd);
- scripting_fprintf(log, "%s\n", sgivolcmd);
-
- return 0;
+ return run_prog(RUN_DISPLAY, MSG_cmdfail,
+ "%s %s", "/usr/mdec/sgivol -f -w boot /usr/mdec/boot", diskdev);
}
int
Home |
Main Index |
Thread Index |
Old Index