Date: Mon, 1 Jun 2009 01:02:30 +0000 (UTC) From: Craig Rodrigues <rodrigc@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/boot/common boot.c src/sys/kern vfs_mount.c Message-ID: <200906010103.n5113qZ7079258@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rodrigc 2009-06-01 01:02:30 UTC
FreeBSD src repository
Modified files:
sys/boot/common boot.c
sys/kern vfs_mount.c
Log:
SVN rev 193192 on 2009-06-01 01:02:30Z by rodrigc
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)
Revision Changes Path
1.32 +21 -2 src/sys/boot/common/boot.c
1.307 +109 -21 src/sys/kern/vfs_mount.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906010103.n5113qZ7079258>
