From 9a7e5d92a7b117e3c3f698b83483d35b88e33ac3 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 11 Mar 2004 20:00:10 +0000 Subject: Don't run fsck if there's no /etc/fstab. In particular, this allows a "virgin" system installed from source (installworld, installkernel, cd etc && make distribution) to boot correctly and modestly simplifies the creation of single-partition network/cdrom/CF bootable images. --- etc/rc.d/fsck | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/rc.d/fsck b/etc/rc.d/fsck index 5fe175f99053..da27e4a0df44 100755 --- a/etc/rc.d/fsck +++ b/etc/rc.d/fsck @@ -29,6 +29,8 @@ fsck_start() { if [ "$autoboot" = no ]; then echo "Fast boot: skipping disk checks." + elif [ ! -r /etc/fstab ]; then + echo "Warning! No /etc/fstab: skipping disk checks." elif [ "$autoboot" = yes ]; then # During fsck ignore SIGQUIT trap : 3 -- cgit v1.2.3