kernel-config: entry_name_format in install.conf

Extend load_kernel_install_conf_at() to parse the new entry_name_format=
setting from install.conf. This plumbing only, no behavioral change yet.
Existing callers pass NULL for the new parameter.

The entry_name_format= setting will allow configuring the boot entry
filename format using specifiers, replacing the current hardcoded
$ENTRY_TOKEN-$KERNEL_VERSION pattern. This is useful for image-based OS
builds (e.g. via mkosi, or image-builder) that require versioned UKI
filenames in the ESP for sysupdate A/B updates.

Having this configuration option allows to do that directly at build
time without having to side-step kernel-install and moving files around
manually.
This commit is contained in:
Simon de Vlieger
2026-08-06 16:22:29 +02:00
parent 1a15ce95ac
commit 95f286b9b4
4 changed files with 21 additions and 12 deletions
+2 -1
View File
@@ -467,7 +467,8 @@ static int context_load_install_conf(Context *c) {
&boot_root,
&layout,
&initrd_generator,
&uki_generator);
&uki_generator,
/* ret_entry_name_format= */ NULL);
if (r <= 0)
return r;