diff options
author | jkh <jkh@FreeBSD.org> | 1997-04-28 06:15:49 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-04-28 06:15:49 +0000 |
commit | 950e94d56ac27acfba9809012119d1f5ff89d5a9 (patch) | |
tree | 144ef1eadf3c60dd8d822704bc9351ad9e4f318c /usr.sbin/sysinstall/system.c | |
parent | 1cc559a0915c05c1dfa4c5d5e15b938a0614056b (diff) | |
download | FreeBSD-src-950e94d56ac27acfba9809012119d1f5ff89d5a9.zip FreeBSD-src-950e94d56ac27acfba9809012119d1f5ff89d5a9.tar.gz |
YAMF22
Diffstat (limited to 'usr.sbin/sysinstall/system.c')
-rw-r--r-- | usr.sbin/sysinstall/system.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c index e5dc4a9..493bf60 100644 --- a/usr.sbin/sysinstall/system.c +++ b/usr.sbin/sysinstall/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id$ + * $Id: system.c,v 1.77 1997/02/22 14:12:20 peter Exp $ * * Jordan Hubbard * @@ -20,6 +20,8 @@ #include <signal.h> #include <sys/reboot.h> #include <machine/console.h> +#include <sys/param.h> +#include <sys/mount.h> #include <sys/fcntl.h> #include <sys/ioctl.h> #include <sys/wait.h> @@ -84,6 +86,8 @@ systemInitialize(int argc, char **argv) setenv("PATH", "/stand:/bin:/sbin:/usr/sbin:/usr/bin:/mnt/bin:/mnt/sbin:/mnt/usr/sbin:/mnt/usr/bin:/usr/X11R6/bin", 1); setbuf(stdin, 0); setbuf(stderr, 0); + /* Remount root read/write in case it's R/O */ + mount(MOUNT_MFS, "/", MNT_WANTRDWR | MNT_UPDATE, NULL); } else { char hname[256]; |