summaryrefslogtreecommitdiff
path: root/distrib
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
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')
-rw-r--r--distrib/miniroot/install.sh3
-rw-r--r--distrib/miniroot/install.sub7
2 files changed, 5 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index c470b5383db..a2634189bab 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sh,v 1.199 2009/06/02 23:53:34 krw Exp $
+# $OpenBSD: install.sh,v 1.200 2009/06/03 00:30:31 krw Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -68,7 +68,6 @@ DISK=
_DKDEVS=$(get_dkdevs)
# Remove traces of previous install attempt.
-umount -a
rm -f /tmp/fstab.shadow /tmp/fstab /tmp/fstab.*
while :; do
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