Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1788823
Signed-off-by: Laszlo Ersek <lersek(a)redhat.com>
---
convert/convert_linux.ml | 21 ++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/convert/convert_linux.ml b/convert/convert_linux.ml
index 930e555de8ed..58a2a2a84d85 100644
--- a/convert/convert_linux.ml
+++ b/convert/convert_linux.ml
@@ -1231,10 +1231,12 @@ let convert (g : G.guestfs) source inspect keep_serial_console _
=
g#mkdir_p uefi_fallback_path;
g#cp uefi_grub_name uefi_fallback_name;
g#cp grub_config uefi_grub_conf;
- let fix_script = sprintf
-"#!/bin/bash
-efibootmgr -c -L \"CentOS 6\"
-rm -rf %s" uefi_fallback_path in
+ let fix_script =
+ sprintf
+ "#!/bin/bash\n\
+ efibootmgr -c -L \"CentOS 6\"\n\
+ rm -rf %s"
+ uefi_fallback_path in
Firstboot.add_firstboot_script
g inspect.i_root "fix uefi boot" fix_script)
else
@@ -1262,10 +1264,13 @@ rm -rf %s" uefi_fallback_path in
* at UEFI fallback path for simplicity
*)
if String.find shim "/boot/efi/EFI/ubuntu/shim" >= 0 then
- let fix_script = sprintf
-"#!/bin/bash
-sudo efibootmgr -c -L ubuntu -l \\\\EFI\\\\ubuntu\\\\shim%s.efi
-rm -rf %s" arch_suffix uefi_fallback_path in
+ let fix_script =
+ sprintf
+ "#!/bin/bash\n\
+ sudo efibootmgr -c -L ubuntu \
+ -l \\\\EFI\\\\ubuntu\\\\shim%s.efi\n\
+ rm -rf %s"
+ arch_suffix uefi_fallback_path in
Firstboot.add_firstboot_script
g inspect.i_root "fix uefi boot" fix_script
else
--
2.19.1.3.g30247aa5d201