. /etc/rc.conf
# Start udev
-/bin/mount -n -t proc none /proc
-/bin/mount -n -t sysfs none /sys
+/bin/mount -t proc none /proc
+/bin/mount -t sysfs none /sys
/sbin/start_udev
# Create device-mapper device nodes and scan for LVM volume groups
fi
# Mount root read-only
-/bin/mount -n -o remount,ro /
+/bin/mount -o remount,ro /
+
+if [ -f /forcefsck ]; then
+FORCEFSCK="-f"
+fi
# Check filesystems
-/sbin/fsck -A -T -C -a
+/sbin/fsck $FORCEFSCK -A -T -C -a
if [ $? -gt 1 ]; then
echo
echo "*************** FILESYSTEM CHECK FAILED ******************"
/sbin/sulogin -p
echo "Automatic reboot in progress..."
/bin/umount -a -r
- /bin/mount -n -o remount,ro /
+ /bin/mount -o remount,ro /
/sbin/reboot -f
exit 0
fi
# Mount local filesystems
-/bin/mount -n -o remount,rw /
-/bin/umount /sys /proc
-/bin/rm -f /etc/mtab*
-/bin/touch /etc/mtab
/bin/mount -o remount,rw /
/bin/mount -a -O no_netdev