diff options
author | green <green@FreeBSD.org> | 2002-01-14 19:42:11 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2002-01-14 19:42:11 +0000 |
commit | 576dbf9ef40ac9f916f377b1f8be2a85750a0dc0 (patch) | |
tree | c5a84120e2ec6cc1a498018ef3a3e749b0bb9f0c /usr.sbin/sade/install.c | |
parent | d40b4fe11b411750f7f89f7bb5393f3d8c848f31 (diff) | |
download | FreeBSD-src-576dbf9ef40ac9f916f377b1f8be2a85750a0dc0.zip FreeBSD-src-576dbf9ef40ac9f916f377b1f8be2a85750a0dc0.tar.gz |
Unbreak installation for the CD-ROM and possiblhy other media types.
Obtained from: LOMAC project
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.sbin/sade/install.c')
-rw-r--r-- | usr.sbin/sade/install.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index 108064f..d2f563d 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -812,6 +812,8 @@ installFixupBin(dialogMenuItem *self) /* BOGON #1: Resurrect /dev after bin distribution screws it up */ dialog_clear_norefresh(); msgNotify("Remaking all devices.. Please wait!"); + if (!Fake) + (void)unmount("/dev", MNT_FORCE); if (vsystem("cd /dev; sh MAKEDEV all")) { msgConfirm("MAKEDEV returned non-zero status"); return DITEM_FAILURE | DITEM_RESTORE; @@ -1070,8 +1072,6 @@ installFilesystems(dialogMenuItem *self) command_sort(); command_execute(); - if (!mountfailed && !Fake) - unmount("/mnt/dev", MNT_FORCE); dialog_clear_norefresh(); return DITEM_SUCCESS | DITEM_RESTORE; } |