[wic][PATCH] bootimg_pcbios: add debug prints
Gaël PORTAY <[email protected]> Tue, 14 Jul 2026 23:47:33 +0200
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
---
src/wic/plugins/source/bootimg_pcbios.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
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)
--
2.43.0