]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install/60-ukify: also search in {/run,/usr/local/lib}/kernel/
authorMike Yuan <me@yhndnzj.com>
Mon, 22 Apr 2024 16:06:11 +0000 (00:06 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Apr 2024 20:38:11 +0000 (22:38 +0200)
After db26d8025e5bbc188f93b645124126bbc550caa5,
kernel-install takes config files under /run/
and /usr/local/lib/ into account too. The same
should apply to ukify.

Note that ukify when invoked alone searches under
/run/systemd/, /etc/systemd/, /usr/local/lib/systemd/,
and /usr/lib/systemd/, respectively, which is against
our usual order...

src/kernel-install/60-ukify.install.in

index e08455b1560213a1c6bc861a3ad1ca3fd172707b..54a5dafa72e63ff0833ee78e138423b7a7612c1a 100755 (executable)
@@ -150,7 +150,11 @@ def input_file_location(
 
 
 def uki_conf_location() -> Optional[Path]:
-    return input_file_location('uki.conf')
+    return input_file_location('uki.conf',
+                               '/etc/kernel',
+                               '/run/kernel',
+                               '/usr/local/lib/kernel',
+                               '/usr/lib/kernel')
 
 
 def devicetree_config_location() -> Optional[Path]: