Displaying 1 result from an estimated 1 matches for "fix_uefi".
2020 May 15
1
[PATCH] v2v: fix UEFI bootloader for linux guests
...rch_suffix arch =
+  let arch_suffix =
+    if contains arch "x86_64" then "X64"
+    else if contains arch "x86_32" then "X32"
+    else "" in
+  arch_suffix
+
+(* Function fixes uefi boot. It's used in both cases: legacy grub and grub2 *)
+let fix_uefi g distro distro_ver grub_config arch =
+    let cant_fix_uefi () = (
+      info (f_"Can't fix UEFI bootloader. VM may not boot.");
+      "" ) in
+
+    let file_exists file =
+      if g#exists file then
+        true
+      else (
+        info (f_"Can't find fil...