[node-patches] Change in ovirt-node[master]: EFI boot:fix grub config filename suffix issue

hadong0720 at gmail.com hadong0720 at gmail.com
Sun Sep 22 03:31:45 UTC 2013


hadong has uploaded a new change for review.

Change subject: EFI boot:fix grub config filename suffix issue
......................................................................

EFI boot:fix grub config filename suffix issue

For fedora, the grub config filename suffix should be "grub.cfg".
And for rhel, this file suffix should be "grub.conf"

Change-Id: I4f1755f9743fcb3d59cdc656499ba140b31792f3
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirtnode/install.py
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/25/19425/1

diff --git a/src/ovirtnode/install.py b/src/ovirtnode/install.py
index 3852027..ac8fb53 100755
--- a/src/ovirtnode/install.py
+++ b/src/ovirtnode/install.py
@@ -93,8 +93,10 @@
         else:
             self.efi_dir_name = "redhat"
         if _functions.is_efi_boot():
-            self.grub_config_file = "/liveos/efi/EFI/%s/grub.cfg" \
-                                     % self.efi_dir_name
+            if self.efi_dir_name == "fedora":
+                self.grub_config_file = "/liveos/efi/EFI/fedora/grub.cfg"
+            else:
+                self.grub_config_file = "/liveos/efi/EFI/redhat/grub.conf"
 
     def grub_install(self):
         if _functions.is_iscsi_install():


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f1755f9743fcb3d59cdc656499ba140b31792f3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list