1 |
Make sure we check only /boot mount and not any mount |
2 |
containing '/boot'. |
3 |
|
4 |
Closes: https://bugs.gentoo.org/691874 |
5 |
Signed-off-by: Thomas Deutschmann <whissi@g.o> |
6 |
--- |
7 |
eclass/mount-boot.eclass | 2 +- |
8 |
1 file changed, 1 insertion(+), 1 deletion(-) |
9 |
|
10 |
diff --git a/eclass/mount-boot.eclass b/eclass/mount-boot.eclass |
11 |
index 4d886c8d8475..938df6732f43 100644 |
12 |
--- a/eclass/mount-boot.eclass |
13 |
+++ b/eclass/mount-boot.eclass |
14 |
@@ -54,7 +54,7 @@ mount-boot_check_status() { |
15 |
# note that /dev/BOOT is in the Gentoo default /etc/fstab file |
16 |
local fstabstate=$(awk '!/^#|^[[:blank:]]+#|^\/dev\/BOOT/ {print $2}' /etc/fstab | egrep "^/boot$" ) |
17 |
local procstate=$(awk '$2 ~ /^\/boot$/ {print $2}' /proc/mounts) |
18 |
- local proc_ro=$(awk '{ print $2 " ," $4 "," }' /proc/mounts | sed -n '/\/boot .*,ro,/p') |
19 |
+ local proc_ro=$(awk '{ print $2 " ," $4 "," }' /proc/mounts | sed -n '/^\/boot .*,ro,/p') |
20 |
|
21 |
if [ -n "${fstabstate}" ] && [ -n "${procstate}" ] ; then |
22 |
if [ -n "${proc_ro}" ] ; then |
23 |
-- |
24 |
2.22.0 |