aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2004-03-11 20:00:10 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2004-03-11 20:00:10 +0000
commit9a7e5d92a7b117e3c3f698b83483d35b88e33ac3 (patch)
tree9915e751c80e2ba37e0dd313c3cd2a57ea7f6193 /etc
parent8217df6de80493481e84e1685299a7e95e03652d (diff)
downloadsrc-9a7e5d92a7b117e3c3f698b83483d35b88e33ac3.tar.gz
src-9a7e5d92a7b117e3c3f698b83483d35b88e33ac3.zip
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.
Notes
Notes: svn path=/head/; revision=126862
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/fsck2
1 files changed, 2 insertions, 0 deletions
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