aports/main/systemd-boot/41778.patch
Clayton Craft 8c0d6d8ead main/systemd-boot: include hwids in ukify subpkg, fix hwids path
These can be passed to ukify to help out the stub when it needs hints
for dtbauto to work on certain boards.

The patch to fix the default hwids path was sent upstream:
https://github.com/systemd/systemd/pull/41778
2026-05-01 11:14:41 +02:00

27 lines
1.1 KiB
Diff

From 9f2ef3f9653333a7419abf9a030b02f28a7f8943 Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Wed, 22 Apr 2026 11:00:04 -0700
Subject: [PATCH] ukify: fix default path for hwids
The documentation and commit that added this seem to suggest this should
be under /usr/lib/systemd
fixes 117ec9db7e71357837190833d7731bc61ae54ecc
---
src/ukify/ukify.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
index 6f492bc9ba07f..03d475e5e763e 100755
--- a/src/ukify/ukify.py
+++ b/src/ukify/ukify.py
@@ -1401,7 +1401,7 @@ def make_uki(opts: UkifyConfig) -> None:
if opts.hwids is not None:
hwids = parse_hwid_dir(Path(opts.hwids))
else:
- hwids_dir = Path(f'/tmp/s/usr/lib/systemd/boot/hwids/{opts.efi_arch}')
+ hwids_dir = Path(f'/usr/lib/systemd/boot/hwids/{opts.efi_arch}')
if hwids_dir.is_dir():
print(f'Automatically building .hwids section from {hwids_dir}', file=sys.stderr)
hwids = parse_hwid_dir(hwids_dir)