Message ID | f08b660fa76e52b3c91b8e308281690e0af2e86b.1657568458.git.jan.kiszka@siemens.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | SWUpdate/secure boot for ARM, related recipe updates | expand |
diff --git a/scripts/lib/wic/plugins/source/efibootguard-efi.py b/scripts/lib/wic/plugins/source/efibootguard-efi.py index e1411cb..140b734 100644 --- a/scripts/lib/wic/plugins/source/efibootguard-efi.py +++ b/scripts/lib/wic/plugins/source/efibootguard-efi.py @@ -98,7 +98,11 @@ class EfibootguardEFIPlugin(SourcePlugin): (part.label.upper(), efi_part_image, blocks) exec_cmd(dosfs_cmd) - mcopy_cmd = "mcopy -v -i %s -s %s/* ::/" % \ + # mtools for buster have problems with resursive mcopy. + # Therefore, create the target dir via mmd first. + mmd_cmd = "mmd -i %s ::/EFI ::/EFI/BOOT" % (efi_part_image) + exec_cmd(mmd_cmd, True) + mcopy_cmd = "mcopy -v -i %s -s %s/EFI/BOOT/* ::/EFI/BOOT" % \ (efi_part_image, part_rootfs_dir) exec_cmd(mcopy_cmd, True)