1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

If rc.d/mountcritlocal is unable to mount local filesystems,

then immediately terminate the shell (during boot this
also terminates the parent rc(8) shell). This was the pre-rcNG behaviour.

Also, remove an extraneous mount /.

PR:		conf/57659
Submitted by:	yar (with modifications)
This commit is contained in:
Mike Makonnen 2003-12-09 08:17:33 +00:00
parent 7645a316db
commit 71516efe7b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123341
2 changed files with 2 additions and 3 deletions

View File

@ -43,7 +43,7 @@ mountcritlocal_start()
*)
echo 'Mounting /etc/fstab filesystems failed,' \
' startup aborted'
exit 1
kill -QUIT $$
;;
esac
;;

View File

@ -27,13 +27,12 @@ root_start()
*)
if ! mount -u -o rw /; then
echo 'Mounting root filesystem rw failed, startup aborted'
exit 1
/bin/kill -QUIT $$
fi
;;
esac
umount -a >/dev/null 2>&1
mount /
# If we booted a special kernel remove the record
# so we will boot the default kernel next time.