Browse Source

swapon -a before fsck is run

OPENBSD_3_0
deraadt 23 years ago
parent
commit
c49bdbd7fb
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/rc

+ 3
- 3
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.169 2001/05/03 21:56:57 deraadt Exp $
# $OpenBSD: rc,v 1.170 2001/05/15 21:28:43 deraadt Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -64,6 +64,8 @@ for dev in 0 1 2 3; do
fi fi
done done
swapon -a
if [ -e /fastboot ]; then if [ -e /fastboot ]; then
echo "Fast boot: skipping disk checks." echo "Fast boot: skipping disk checks."
elif [ $1x = autobootx ]; then elif [ $1x = autobootx ]; then
@ -102,8 +104,6 @@ fi
trap "echo 'Boot interrupted.'; exit 1" 3 trap "echo 'Boot interrupted.'; exit 1" 3
swapon -a
umount -a >/dev/null 2>&1 umount -a >/dev/null 2>&1
mount -a -t nonfs mount -a -t nonfs
mount -uw / # root on nfs requires this, others aren't hurt mount -uw / # root on nfs requires this, others aren't hurt


Loading…
Cancel
Save