[node-patches] Change in ovirt-node[node-3.0]: remove existing efi entries when uninstall rhev-h in efi boot

fabiand at fedoraproject.org fabiand at fedoraproject.org
Thu Sep 19 10:36:52 UTC 2013


Hello hadong,

I'd like you to do a code review.  Please visit

    http://gerrit.ovirt.org/19385

to review the following change.

Change subject: remove existing efi entries when uninstall rhev-h in efi boot
......................................................................

remove existing efi entries when uninstall rhev-h in efi boot

Change-Id: Ib1f63a9a0fdb9fb1c6211ebd8247459ddcda46db
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=950893
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/85/19385/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 4e555d8..49d0681 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -768,6 +768,11 @@
     # Handle uninstall arg
     # need to wipe mbr if passed
     if [ "$uninstall" = "yes" ]; then
+        python <<EOP
+import ovirtnode.ovirtfunctions as _functions
+if _functions.is_efi_boot():
+    _functions.remove_efi_entry(_functions.PRODUCT_SHORT)
+EOP
         oldIFS=$IFS
         log "Found uninstall arg, wiping mbr from init disks"
         IFS=$SEP


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1f63a9a0fdb9fb1c6211ebd8247459ddcda46db
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: node-3.0
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list