From b7df99566ea6988c5411468b2b9d7e02f25bc85a Mon Sep 17 00:00:00 2001
From: Super User <root@localhost.localdomain>
Date: Wed, 6 Sep 2023 17:14:29 +0800
Subject: [PATCH] allow uefi boot

---
 .../centos7/openeuler/centos72openeuler.py                      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ut-Migration-tools/ut-Migration-tools-0.1/centos7/openeuler/centos72openeuler.py b/ut-Migration-tools/ut-Migration-tools-0.1/centos7/openeuler/centos72openeuler.py
index 1cedebf..f24d765 100644
--- a/ut-Migration-tools/ut-Migration-tools-0.1/centos7/openeuler/centos72openeuler.py
+++ b/ut-Migration-tools/ut-Migration-tools-0.1/centos7/openeuler/centos72openeuler.py
@@ -195,7 +195,6 @@ def main():
 
     if system_sync():
         subprocess.run('dnf -y groupinstall Minimal Install', shell=True)
-        conf_grub()
     else:
         print("Removing confilct package yum...")
         os.system("rpm -e --nodeps yum")
@@ -216,6 +215,7 @@ def main():
     if os.path.exists(yum_conflict_dir):
         shutil.rmtree(yum_conflict_dir)
     print("Installing yum...")
+    conf_grub()
     run_subprocess('dnf install -y yum'.split())
     
     print("System migration completed, rebooting system")
-- 
2.41.0

