summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-10 21:40:36 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-12 15:02:54 +0200
commit7840e73dde3ff715806aff61708f134479581d9c (patch)
tree4e58c4203c998bd61964bd964db07aa2a17df81e /eclass
parentapp-office/ledger: Drop 3.1.1-r2 (diff)
downloadgentoo-7840e73dde3ff715806aff61708f134479581d9c.tar.gz
gentoo-7840e73dde3ff715806aff61708f134479581d9c.tar.bz2
gentoo-7840e73dde3ff715806aff61708f134479581d9c.zip
mount-boot.eclass: Fix ro check
Make sure we check only /boot mount and not any mount containing '/boot'. Closes: https://bugs.gentoo.org/691874 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mount-boot.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/mount-boot.eclass b/eclass/mount-boot.eclass
index 4d886c8d8475..938df6732f43 100644
--- a/eclass/mount-boot.eclass
+++ b/eclass/mount-boot.eclass
@@ -54,7 +54,7 @@ mount-boot_check_status() {
# note that /dev/BOOT is in the Gentoo default /etc/fstab file
local fstabstate=$(awk '!/^#|^[[:blank:]]+#|^\/dev\/BOOT/ {print $2}' /etc/fstab | egrep "^/boot$" )
local procstate=$(awk '$2 ~ /^\/boot$/ {print $2}' /proc/mounts)
- local proc_ro=$(awk '{ print $2 " ," $4 "," }' /proc/mounts | sed -n '/\/boot .*,ro,/p')
+ local proc_ro=$(awk '{ print $2 " ," $4 "," }' /proc/mounts | sed -n '/^\/boot .*,ro,/p')
if [ -n "${fstabstate}" ] && [ -n "${procstate}" ] ; then
if [ -n "${proc_ro}" ] ; then