* [PATCH] wic: remove '.signed' suffix from systemd-* binaries
@ 2025-07-01 16:05 'Cedric Hombourger' via isar-users
0 siblings, 0 replies; only message in thread
From: 'Cedric Hombourger' via isar-users @ 2025-07-01 16:05 UTC (permalink / raw)
To: isar-users; +Cc: Cedric Hombourger
Starting with trixie, systemd-boot depends on either systemd-boot-efi
or systemd-boot-efi-signed. In the latter, EFI binaries are suffixed
with ".signed". Make the wic plugin drop that suffix while copying
binaries to EFI/BOOT so that generated images get detected as bootable
disks.
Signed-off-by: Cedric Hombourger <cedric.hombourger@siemens.com>
---
meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
index 78ae4fb2..446398d0 100644
--- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
+++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py
@@ -469,7 +469,10 @@ class BootimgEFIPlugin(SourcePlugin):
kernel_dir = "/usr/lib/systemd/boot/efi/"
for mod in [x for x in os.listdir(kernel_dir) if x.startswith("systemd-")]:
- cp_cmd = "cp %s/%s %s/EFI/BOOT/%s" % (kernel_dir, mod, hdddir, mod[8:])
+ target = mod[8:]
+ if target.endswith('.signed'):
+ target = target[:-7]
+ cp_cmd = "cp %s/%s %s/EFI/BOOT/%s" % (kernel_dir, mod, hdddir, target)
exec_cmd(cp_cmd, True)
kernel_dir = kernel_dir_orig
--
2.39.5
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250701160523.1046875-1-cedric.hombourger%40siemens.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-01 16:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-01 16:05 [PATCH] wic: remove '.signed' suffix from systemd-* binaries 'Cedric Hombourger' via isar-users
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox