[node-patches] Change in ovirt-node[master]: Fix mount_boot for EL7

rbarry at redhat.com rbarry at redhat.com
Tue Nov 11 19:16:42 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: Fix mount_boot for EL7
......................................................................

Fix mount_boot for EL7

EL7 mounts tmpfs at /boot, which spuriously does not mount /boot

Change-Id: I624b04162e40b114da006595713ef0b4a0958147
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1063561
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M scripts/ovirt-functions.in
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/58/35058/1

diff --git a/scripts/ovirt-functions.in b/scripts/ovirt-functions.in
index 05dc2f3..c174302 100644
--- a/scripts/ovirt-functions.in
+++ b/scripts/ovirt-functions.in
@@ -409,8 +409,8 @@
 }
 
 mount_boot() {
-
-    if grep -q " /boot " /etc/mtab; then
+    # Check if something other than tmpfs is at /boot
+    if grep -q -E " /boot [^tmpfs]" /etc/mtab; then
        return 0
     fi
     mkdir -p /boot


-- 
To view, visit http://gerrit.ovirt.org/35058
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I624b04162e40b114da006595713ef0b4a0958147
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list