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.
This commit is contained in:
Tim Kientzle 2004-03-11 20:00:10 +00:00
parent 8217df6de8
commit 9a7e5d92a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126862

View File

@ -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