[node-patches] Change in ovirt-node[master]: Mount the EFI partition in the right place for grub2 and iscsi

rbarry at redhat.com rbarry at redhat.com
Tue Oct 28 19:38:29 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: Mount the EFI partition in the right place for grub2 and iscsi
......................................................................

Mount the EFI partition in the right place for grub2 and iscsi

grub2 installs differently than grub-efi. Make sure the EFI
partition is in the right place if we're booted from iscsi root

Change-Id: I1ec89d052adf19439f747b81e01d0e64a5abf1ee
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1157442
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirtnode/install.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/72/34572/1

diff --git a/src/ovirtnode/install.py b/src/ovirtnode/install.py
index 51e861d..d810602 100755
--- a/src/ovirtnode/install.py
+++ b/src/ovirtnode/install.py
@@ -252,6 +252,10 @@
             disk = self.disk
         if _functions.is_efi_boot():
             boot_dir = self.initrd_dest + "/efi"
+            if _functions.is_iscsi_install():
+                # If it's iscsi boot, make sure it's not just at /liveos/efi
+                _functions.system("mount /dev/disk/by-label/EFI %s" %
+                                  boot_dir)
         else:
             boot_dir = self.initrd_dest
         grub_setup_cmd = ("/sbin/grub2-install " + disk +


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ec89d052adf19439f747b81e01d0e64a5abf1ee
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