]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sys/boot/common.c
authorrodrigc <rodrigc@FreeBSD.org>
Mon, 1 Jun 2009 01:02:30 +0000 (01:02 +0000)
committerrodrigc <rodrigc@FreeBSD.org>
Mon, 1 Jun 2009 01:02:30 +0000 (01:02 +0000)
commit2380a39febcd4ecf99729dd7a1887661f1a5ab81
tree74e51078ec3549432e91cb91eaba5a7e13cebe39
parent95a5c8db946a1a257637d69644d55b86531668f6
sys/boot/common.c
=================
Extend the loader to parse the root file system mount options in /etc/fstab,
and set a new loader variable vfs.root.mountfrom.options with these options.
The root mount options must be a comma-delimited string, as specified in
/etc/fstab.
Only set the vfs.root.mountfrom.options variable if it has not been
set in the environment.

sys/kern/vfs_mount.c
====================
When mounting the root file system, pass the mount options
specified in vfs.root.mountfrom.options, but filter out "rw" and "noro",
since the initial mount of the root file system must be done as "ro".
While we are here, try to add a few hints to the mountroot prompt
to give users and idea what might of gone wrong during mounting
of the root file system.

Reviewed by: jhb (an earlier patch)
sys/boot/common/boot.c
sys/kern/vfs_mount.c