summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2002-01-14 19:42:11 +0000
committergreen <green@FreeBSD.org>2002-01-14 19:42:11 +0000
commit576dbf9ef40ac9f916f377b1f8be2a85750a0dc0 (patch)
treec5a84120e2ec6cc1a498018ef3a3e749b0bb9f0c /usr.sbin/sade
parentd40b4fe11b411750f7f89f7bb5393f3d8c848f31 (diff)
downloadFreeBSD-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')
-rw-r--r--usr.sbin/sade/install.c4
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;
}
OpenPOWER on IntegriCloud