Skip to content

Kernel-install: Only run if we are wanted

cedric cvl requested to merge clavelc/mkinitcpio:uki-generator-defaults into master

Issue: Right now, if KERNEL_INSTALL_UKI_GENERATOR is unset, both mkinitcpio and ukify will create the UKI

-> Running build hook: [sd-encrypt]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image
==> Initcpio image generation successful
==> Creating unified kernel image: '/tmp/kernel-install.staging.H2hQo7/uki.efi'
==> Unified kernel image generation successful
/etc/kernel/install.d/50-mkinitcpio.install succeeded.
About to execute /usr/lib/kernel/install.d/60-ukify.install add 6.1.65-1-lts /efi/982132008de649089768b8fa1887cbe1/6.1.65-1-lts /lib/modules/6.1.65-1-lts/vmlinuz
Successfully forked off '(direxec)' as PID 44441.
Using found config file: /etc/systemd/ukify.conf
Wrote unsigned /tmp/kernel-install.staging.H2hQo7/uki.efi
/tmp/kernel-install.staging.H2hQo7/uki.efi has been created
/usr/lib/kernel/install.d/60-ukify.install succeeded.

This is because of

This makes mkinitcpio only run if it is specifically set as KERNEL_INSTALL_UKI_GENERATOR

Merge request reports