diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-13 21:03:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-13 21:03:32 +0000 |
commit | 491fc5bb2b89092077481d672f2ce178c057a449 (patch) | |
tree | c79b1c65ad3f76c4ef58bd5e413c975efb12180c /distrib/miniroot/install.sub | |
parent | 6d25088719664d7cb1379643d62f4b2f9972369f (diff) |
only fsck root once in upgrade; from krw
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 74814da2318..bf62da6aee5 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.203 2002/04/13 00:46:46 deraadt Exp $ +# $OpenBSD: install.sub,v 1.204 2002/04/13 21:03:31 deraadt Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2002 Todd Miller, Theo de Raadt, Ken Westerback @@ -1995,11 +1995,14 @@ remount_fs() { done < /etc/fstab } -# Preen all filesystems in /etc/fstab, showing individual results. +# Preen all filesystems in /etc/fstab, showing individual results, +# but skipping the root filesystem device given in $1. This was +# already fsck'ed successfully. check_fs() { - local _dev _rest _badfsck=0 + local _dev _rest _badfsck=0 _root=$1 while read _dev _rest; do + [ "$_dev" = "$_root" ] && continue echo -n "fsck -p ${_dev}..." if ! fsck -fp ${_dev} > /dev/null 2>&1; then echo "FAILED. You must fsck this device manually." |