summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-06-03 00:30:32 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-06-03 00:30:32 +0000
commit474ae2ea09a7f774a9c515f8140bb545c418eb8b (patch)
tree134e483792740dd601c43b4ed39f9bd84a3a9dfa /distrib/miniroot/install.sub
parent78ca28601a91b7a3775baca123de0519c49fe73c (diff)
Only need to umount once on restarting. Force umounts in case of
restarting. No need to ask for verbose umount output since we send it all to /dev/null. Make sure we start in '/', lest we were restarted while exploring the installed/upgraded filesystems.
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub7
1 files changed, 4 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index abca60339b3..b5ff490b400 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.569 2009/06/02 23:53:34 krw Exp $
+# $OpenBSD: install.sub,v 1.570 2009/06/03 00:30:31 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
@@ -1835,8 +1835,9 @@ COLUMNS=$(stty -a | sed -n '/columns/{s/^.* \([0-9]*\) columns.*$/\1/;p;}')
export EDITOR COLUMNS
# umount all filesystems, just in case we are re-running install or upgrade.
-[[ -f /etc/fstab ]] && umount -av 1>/dev/null 2>&1
-umount -v /mnt 1>/dev/null 2>&1
+cd /
+[[ -f /etc/fstab ]] && umount -af 1>/dev/null 2>&1
+umount /mnt 1>/dev/null 2>&1
# Introduce ourselves.
welcome