--loginstall [DIR] Log all files installed from the host to [DIR].
--uefi Create an UEFI executable with the kernel cmdline and
kernel combined.
+ --ukify Enables ukify.
--no-uefi Disables UEFI mode.
+ --no-ukify Disables ukify.
--no-machineid Affects the default output filename of the UEFI
executable, discarding the <MACHINE_ID> part.
--uefi-stub [FILE] Use the UEFI stub [FILE] to create an UEFI executable.
--long no-reproducible \
--long loginstall: \
--long uefi \
+ --long ukify \
--long no-uefi \
+ --long no-ukify \
--long uefi-stub: \
--long uefi-splash-image: \
--long kernel-image: \
--reproducible) reproducible_l="yes" ;;
--no-reproducible) reproducible_l="no" ;;
--uefi) uefi_l="yes" ;;
+ --ukify) ukify_l="yes" ;;
--no-uefi) uefi_l="no" ;;
+ --no-ukify) ukify_l="no" ;;
--uefi-stub)
uefi_stub_l="$2"
PARMS_TO_STORE+=" '$2'"
[[ $reproducible_l ]] && reproducible="$reproducible_l"
[[ $loginstall_l ]] && loginstall="$loginstall_l"
[[ $uefi_l ]] && uefi=$uefi_l
+[[ $ukify_l ]] && ukify=$ukify_l
[[ $uefi_stub_l ]] && uefi_stub=$(path_rel_to_abs "$uefi_stub_l")
[[ $uefi_splash_image_l ]] && uefi_splash_image=$(path_rel_to_abs "$uefi_splash_image_l")
[[ $kernel_image_l ]] && kernel_image=$(path_rel_to_abs "$kernel_image_l")
cp "$uefi_stub" "$tmp_uefi_stub"
"${OBJCOPY:-objcopy}" --remove-section .sbat "$tmp_uefi_stub" &> /dev/null
- if command -v ukify &> /dev/null; then
+ if command -v ukify &> /dev/null && [[ $ukify != 'no' ]]; then
dinfo "*** Using ukify to create UKI ***"
if ukify build \
--linux "$kernel_image" \
_/usr/lib/os-release_ or if it exists _/etc/os-release_ and is left out,
if BUILD_ID is non-existent or empty.
+**--ukify**::
+ Enables using ukify to create UKI (default).
+
**--no-uefi**::
Disables UEFI mode.
+**--no-ukify**::
+ Disables using ukify to create UKI even if ukify is installed.
+
**--no-machineid**::
Affects the default output filename of **--uefi** and will discard the
<MACHINE_ID> part.
--local --hostonly --no-hostonly --fstab --help --bzip2 --lzma
--xz --zstd --no-compress --gzip --list-modules --show-modules --keep
--printsize --regenerate-all --noimageifnotneeded --early-microcode
- --no-early-microcode --print-cmdline --reproducible --uefi
+ --no-early-microcode --print-cmdline --reproducible --uefi --ukify
--enhanced-cpio --rebuild --aggressive-strip --hostonly-cmdline
--no-hostonly-cmdline --no-hostonly-default-device --nofscks
--hostonly-i18n --no-hostonly-i18n --lzo --lz4 --no-reproducible
- --no-uefi --no-machineid --version --parallel --printconfig
+ --no-uefi --no-ukify --no-machineid --version --parallel --printconfig
'
[ARG]='-a -m -o -d -I -k -c -L -r -i
--kver --add --force-add --add-drivers --force-drivers