diff options
author | Donny Davies <woodchip@gentoo.org> | 2002-11-13 04:59:31 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2002-11-13 04:59:31 +0000 |
commit | eff7ed019cf8aacf4246a6f1562a7837e18a88c5 (patch) | |
tree | bec4d69800683af66a879259549ec652488397ef /eclass/mount-boot.eclass | |
parent | Touchups (diff) | |
download | gentoo-2-eff7ed019cf8aacf4246a6f1562a7837e18a88c5.tar.gz gentoo-2-eff7ed019cf8aacf4246a6f1562a7837e18a88c5.tar.bz2 gentoo-2-eff7ed019cf8aacf4246a6f1562a7837e18a88c5.zip |
fix for #10471
Diffstat (limited to 'eclass/mount-boot.eclass')
-rw-r--r-- | eclass/mount-boot.eclass | 6 |
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 |