summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-07-23 00:30:04 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-07-23 00:30:04 +0000
commitf0a4fd8da0c18e97a5d075ec171327ab15723a00 (patch)
tree63ff87d059090948695aec679bc2b1ba017ff6d9 /distrib
parent317ca30388cb43717c8bd028c5d77e38efc74712 (diff)
Don't use the presence of /etc/fstab to determine if all filesystems
are umount'd at the start of install/upgrade. As halex@ pointed out 'umount -af' doesn't actually use /etc/fstab, so just always do it. Fixes situations where bailing out of install/upgrade before /etc/fstab was created meant filesystems were not umount'd and restarting the install/upgrade would fail. Noticed & prodded deraadt@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub5
1 files changed, 2 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index fd7c7cc4133..ce041f7fb83 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.593 2009/07/14 23:45:16 krw Exp $
+# $OpenBSD: install.sub,v 1.594 2009/07/23 00:30:03 krw Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1914,8 +1914,7 @@ export EDITOR COLUMNS
# umount all filesystems, just in case we are re-running install or upgrade.
cd /
-[[ -f /etc/fstab ]] && umount -af 1>/dev/null 2>&1
-umount /mnt 1>/dev/null 2>&1
+umount -af 1>/dev/null 2>&1
cat <<__EOT
At any prompt except password prompts you can escape to a shell by