From 474ae2ea09a7f774a9c515f8140bb545c418eb8b Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 3 Jun 2009 00:30:32 +0000 Subject: 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. --- distrib/miniroot/install.sh | 3 +-- distrib/miniroot/install.sub | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'distrib') 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 -- cgit v1.2.3