Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1788823
Signed-off-by: Laszlo Ersek <[email protected]>
---
 convert/convert_windows.ml | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/convert/convert_windows.ml b/convert/convert_windows.ml
index 97021766c2b7..f1ae0fa8a4b1 100644
--- a/convert/convert_windows.ml
+++ b/convert/convert_windows.ml
@@ -401,12 +401,14 @@ let convert (g : G.guestfs) _ inspect _ static_ips =
 
     let pnp_wait_path = "/Program Files/Guestfs/Firstboot/pnp_wait.exe" in
 
-    let fb_script = sprintf "\
-@echo off
-
-echo Wait for PnP to complete
-\"%s\" >\"%%~dpn0.log\" 2>&1
-%s" (String.replace_char pnp_wait_path '/' '\\') reg_restore_str in
+    let fb_script = sprintf
+                      "@echo off\n\
+                       \n\
+                       echo Wait for PnP to complete\n\
+                       \"%s\" >\"%%~dpn0.log\" 2>&1\n\
+                       %s"
+                      (String.replace_char pnp_wait_path '/' '\\')
+                      reg_restore_str in
 
     Firstboot.add_firstboot_script g inspect.i_root "wait pnp" fb_script;
     (* add_firstboot_script has created the path already. *)
-- 
2.19.1.3.g30247aa5d201


_______________________________________________
Libguestfs mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to