diff mbox series

[2/3] systemd-boot-native: install the hwids tables

Message ID 20261129223704.2168814-2-ricardo.salveti@oss.qualcomm.com
State New
Headers show
Series [1/3] uki.bbclass: skip overlays and select between several devicetrees | expand

Commit Message

Ricardo Salveti Nov. 29, 2026, 10:37 p.m. UTC
Since systemd 260, ukify fills the .hwids section from
/usr/lib/systemd/boot/hwids/<efi-arch> when --hwids is not given, where
systemd installs the device tables from src/boot/hwids. The native
recipe only installs ukify, so the only tables ukify can find are the
build host's. Install them in the native sysroot, so that a UKI can use
the ones from the same systemd version as the stub (UKI_HWIDS, next
commit).

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
---
 meta/recipes-core/systemd/systemd-boot-native_262.2.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd-boot-native_262.2.bb b/meta/recipes-core/systemd/systemd-boot-native_262.2.bb
index 05ebe7b63e..fa74f8f3ef 100644
--- a/meta/recipes-core/systemd/systemd-boot-native_262.2.bb
+++ b/meta/recipes-core/systemd/systemd-boot-native_262.2.bb
@@ -8,11 +8,15 @@  deltask do_compile
 
 do_install () {
        install -Dm 0755 ${S}/src/ukify/ukify.py ${D}${bindir}/ukify
+       # hardware ID tables for "ukify --hwids", as installed by systemd
+       install -d ${D}${nonarch_libdir}/systemd/boot
+       cp -R --no-preserve=ownership ${S}/src/boot/hwids ${D}${nonarch_libdir}/systemd/boot/
+       rm -rf ${D}${nonarch_libdir}/systemd/boot/hwids/test
 }
 addtask install after do_patch
 
 PACKAGES = "${PN}"
 
-FILES:${PN} = "${bindir}/ukify"
+FILES:${PN} = "${bindir}/ukify ${nonarch_libdir}/systemd/boot/hwids"
 
 RDEPENDS:${PN} += "python3-pefile-native"