diff mbox series

[wic] bootimg_pcbios: add debug prints

Message ID 20260714214733.1631804-1-gael.portay+rtone@gmail.com
State New
Headers show
Series [wic] bootimg_pcbios: add debug prints | expand

Commit Message

Gaël PORTAY July 14, 2026, 9:47 p.m. UTC
Add prints to see what is being copied to boot partition.

See commit 5643596fd76 ("wic bootimg-efi.py: keep timestamps and add
debug prints")

Signed-off-by: Gaël PORTAY <gael.portay+rtone@gmail.com>
---
 src/wic/plugins/source/bootimg_pcbios.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/src/wic/plugins/source/bootimg_pcbios.py b/src/wic/plugins/source/bootimg_pcbios.py
index f87c337..8310cd5 100644
--- a/src/wic/plugins/source/bootimg_pcbios.py
+++ b/src/wic/plugins/source/bootimg_pcbios.py
@@ -299,12 +299,14 @@  class BootimgPcbiosPlugin(SourcePlugin):
         label = part.label if part.label else "boot"
 
         sector_size = getattr(creator, 'sector_size', 512)
-        dosfs_cmd = "mkdosfs -n %s -i %s -S %d -C %s %d" % \
+        dosfs_cmd = "mkdosfs -v -n %s -i %s -S %d -C %s %d" % \
                     (label, part.fsuuid, sector_size, bootimg, blocks)
-        exec_native_cmd(dosfs_cmd, native_sysroot)
+        out = exec_native_cmd(dosfs_cmd, native_sysroot)
+        logger.debug("mkdosfs:\n%s" % (str(out)))
 
-        mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (bootimg, hdddir)
-        exec_native_cmd(mcopy_cmd, native_sysroot)
+        mcopy_cmd = "mcopy -v -p -i %s -s %s/* ::/" % (bootimg, hdddir)
+        out = exec_native_cmd(mcopy_cmd, native_sysroot)
+        logger.debug("mcopy:\n%s" % (str(out)))
 
         syslinux_cmd = "syslinux %s" % bootimg
         exec_native_cmd(syslinux_cmd, native_sysroot)