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

hadong0720 at gmail.com hadong0720 at gmail.com
Fri Aug 23 11:01:31 UTC 2013


hadong has uploaded a new change for review.

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/44/18444/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/18444
To unsubscribe, visit http://gerrit.ovirt.org/settings

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