diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-22 00:15:51 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-22 00:15:51 +0000 |
commit | c7ed70aaebb41be1a4b6a1ede797609d522a0906 (patch) | |
tree | 8012598730759d3b92126925bca2c1f215af4fbc /usr.sbin/sade/globals.c | |
parent | 04a08427c7d068d0a067bff780df51d9da1fbbae (diff) | |
download | FreeBSD-src-c7ed70aaebb41be1a4b6a1ede797609d522a0906.zip FreeBSD-src-c7ed70aaebb41be1a4b6a1ede797609d522a0906.tar.gz |
Argh! Moving the media initialization to before the disk scribbling
section was a good thing, since it made it possible to detect media problems
*before* the installation started, but it also caused various things to
be mounted BEFORE the chroot() call, which definitely messes things up.
Fix this by detecting the pre-chroot() case and mounting into a subdir.
Diffstat (limited to 'usr.sbin/sade/globals.c')
-rw-r--r-- | usr.sbin/sade/globals.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/sade/globals.c b/usr.sbin/sade/globals.c index 5b4010d..afe55b3 100644 --- a/usr.sbin/sade/globals.c +++ b/usr.sbin/sade/globals.c @@ -44,6 +44,7 @@ int DebugFD; /* Where diagnostic output goes */ Boolean Fake; /* Only pretend to be useful */ Boolean RunningAsInit; /* Are we running as init? */ +Boolean Chrooted; /* Yow, have we chrooted yet? */ Boolean DialogActive; /* Is libdialog initialized? */ Boolean ColorDisplay; /* Are we on a color display? */ Boolean OnVTY; /* Are we on a VTY? */ @@ -67,4 +68,5 @@ globalsInit(void) VarHead = NULL; mediaDevice = NULL; RunningAsInit = FALSE; + Chrooted = FALSE; } |