kernel-install/60-ukify: also search in {/run,/usr/local/lib}/kernel/

After db26d8025e,
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...
This commit is contained in:
Mike Yuan
2024-04-23 00:06:11 +08:00
committed by Luca Boccassi
parent c9e89db860
commit 4a77d4ceb9

View File

@@ -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]: