* [gentoo-dev] [PATCH] mount-boot.eclass: Fix ro check
@ 2019-08-10 19:42 Thomas Deutschmann
2019-08-10 23:58 ` Robin H. Johnson
2019-08-12 13:04 ` [gentoo-dev] " Thomas Deutschmann
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Deutschmann @ 2019-08-10 19:42 UTC (permalink / raw
To: gentoo-dev; +Cc: base-system
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>
---
eclass/mount-boot.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.22.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] [PATCH] mount-boot.eclass: Fix ro check
2019-08-10 19:42 [gentoo-dev] [PATCH] mount-boot.eclass: Fix ro check Thomas Deutschmann
@ 2019-08-10 23:58 ` Robin H. Johnson
2019-08-12 13:04 ` [gentoo-dev] " Thomas Deutschmann
1 sibling, 0 replies; 3+ messages in thread
From: Robin H. Johnson @ 2019-08-10 23:58 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 379 bytes --]
On Sat, Aug 10, 2019 at 09:42:38PM +0200, Thomas Deutschmann wrote:
> Make sure we check only /boot mount and not any mount
> containing '/boot'.
+1.
--
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1113 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-dev] Re: [PATCH] mount-boot.eclass: Fix ro check
2019-08-10 19:42 [gentoo-dev] [PATCH] mount-boot.eclass: Fix ro check Thomas Deutschmann
2019-08-10 23:58 ` Robin H. Johnson
@ 2019-08-12 13:04 ` Thomas Deutschmann
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Deutschmann @ 2019-08-12 13:04 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1.1: Type: text/plain, Size: 232 bytes --]
Hi,
now pushed,
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7840e73dde3ff715806aff61708f134479581d9c
--
Regards,
Thomas Deutschmann / Gentoo Linux Developer
C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 618 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-12 13:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-10 19:42 [gentoo-dev] [PATCH] mount-boot.eclass: Fix ro check Thomas Deutschmann
2019-08-10 23:58 ` Robin H. Johnson
2019-08-12 13:04 ` [gentoo-dev] " Thomas Deutschmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox