From owner-cvs-src-old@FreeBSD.ORG Mon Jun 1 01:03:52 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A267D106564A for ; Mon, 1 Jun 2009 01:03:52 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8F2A68FC13 for ; Mon, 1 Jun 2009 01:03:52 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5113qBA079259 for ; Mon, 1 Jun 2009 01:03:52 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5113qZ7079258 for cvs-src-old@freebsd.org; Mon, 1 Jun 2009 01:03:52 GMT (envelope-from rodrigc@repoman.freebsd.org) Message-Id: <200906010103.n5113qZ7079258@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rodrigc@repoman.freebsd.org using -f From: Craig Rodrigues Date: Mon, 1 Jun 2009 01:02:30 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/boot/common boot.c src/sys/kern vfs_mount.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 01:03:52 -0000 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