From 13765f375ce59617d99923f910d3655f44d0f669 Mon Sep 17 00:00:00 2001 From: Donny Davies Date: Wed, 13 Nov 2002 04:59:31 +0000 Subject: fix for #10471 --- eclass/mount-boot.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eclass/mount-boot.eclass') 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 -- cgit v1.2.3-65-gdbad