Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: mount-boot.eclass
Date: Fri, 27 Feb 2009 01:53:37
Message-Id: E1Lcruw-0004FI-4S@stork.gentoo.org
1 vapier 09/02/27 01:53:34
2
3 Modified: mount-boot.eclass
4 Log:
5 make matching ro in the options field a bit more robust #260214 by Joe User
6
7 Revision Changes Path
8 1.16 eclass/mount-boot.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mount-boot.eclass?rev=1.16&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mount-boot.eclass?rev=1.16&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/mount-boot.eclass?r1=1.15&r2=1.16
13
14 Index: mount-boot.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v
17 retrieving revision 1.15
18 retrieving revision 1.16
19 diff -u -r1.15 -r1.16
20 --- mount-boot.eclass 27 Nov 2008 18:36:29 -0000 1.15
21 +++ mount-boot.eclass 27 Feb 2009 01:53:34 -0000 1.16
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.15 2008/11/27 18:36:29 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.16 2009/02/27 01:53:34 vapier Exp $
27 #
28 # This eclass is really only useful for bootloaders.
29 #
30 @@ -25,7 +25,7 @@
31 # note that /dev/BOOT is in the Gentoo default /etc/fstab file
32 local fstabstate=$(awk '!/^#|^[[:blank:]]+#|^\/dev\/BOOT/ {print $2}' /etc/fstab | egrep "^/boot$" )
33 local procstate=$(awk '$2 ~ /^\/boot$/ {print $2}' /proc/mounts)
34 - local proc_ro=$(awk '{ print $2, $4 }' /proc/mounts | sed -n '/\/boot/{ /[ ,]\?ro[ ,]\?/p }' )
35 + local proc_ro=$(awk '{ print $2 " ," $4 "," }' /proc/mounts | sed -n '/\/boot .*,ro,/p')
36
37 if [ -n "${fstabstate}" ] && [ -n "${procstate}" ]; then
38 if [ -n "${proc_ro}" ]; then