summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2002-11-13 04:59:31 +0000
committerDonny Davies <woodchip@gentoo.org>2002-11-13 04:59:31 +0000
commit13765f375ce59617d99923f910d3655f44d0f669 (patch)
treee4ddfefe498b644a4ff1fd184e17c0e948fd0605 /eclass/mount-boot.eclass
parentTouchups (diff)
downloadhistorical-13765f375ce59617d99923f910d3655f44d0f669.tar.gz
historical-13765f375ce59617d99923f910d3655f44d0f669.tar.bz2
historical-13765f375ce59617d99923f910d3655f44d0f669.zip
fix for #10471
Diffstat (limited to 'eclass/mount-boot.eclass')
-rw-r--r--eclass/mount-boot.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/mount-boot.eclass b/eclass/mount-boot.eclass
index be747b9c1d2d..5f06424d4a26 100644
--- a/eclass/mount-boot.eclass
+++ b/eclass/mount-boot.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.5 2002/10/25 19:55:52 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mount-boot.eclass,v 1.6 2002/11/13 04:59:31 woodchip Exp $
ECLASS=mount-boot
INHERITED="$INHERITED $ECLASS"
@@ -9,8 +9,8 @@ mount-boot_pkg_setup(){
[ "${ROOT}" != "/" ] && return 0
- local fstabstate="$(cat /etc/fstab | awk '!/^#|^[[:blank:]]+#|^\/dev\/BOOT/ {print $2}' | egrep "/boot" )"
- local procstate="$(cat /proc/mounts | awk '{print $2}' | egrep "/boot" )"
+ local fstabstate="$(cat /etc/fstab | awk '!/^#|^[[:blank:]]+#|^\/dev\/BOOT/ {print $2}' | egrep "^/boot$" )"
+ local procstate="$(cat /proc/mounts | awk '{print $2}' | egrep "^/boot$" )"
local proc_ro="$(cat /proc/mounts | awk '{ print $2, $4 }' | sed -n '/\/boot/{ /[ ,]\?ro[ ,]\?/p }' )"
if [ -n "${fstabstate}" ] && [ -n "${procstate}" ]; then