From: Li Tian Date: Sun, 13 Jul 2025 10:59:10 +0000 (+0800) Subject: 90-uki-copy.install: Skip removing UKI related when BOOT_ENTRY_TYPE=type1 X-Git-Tag: v258-rc1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e3c496bd3c892c84c71610d10d3b481245522e8;p=thirdparty%2Fsystemd.git 90-uki-copy.install: Skip removing UKI related when BOOT_ENTRY_TYPE=type1 Commit b6d499768394 ("Add --entry-type=type1|type2 option to kernel-install.") Skip removing UKI related contents when BOOT_ENTRY_TYPE=type1 Signed-off-by: Li Tian --- diff --git a/src/kernel-install/90-uki-copy.install b/src/kernel-install/90-uki-copy.install index 465af49c800..90aa876e6af 100755 --- a/src/kernel-install/90-uki-copy.install +++ b/src/kernel-install/90-uki-copy.install @@ -33,6 +33,11 @@ UKI_DIR="$BOOT_ROOT/EFI/Linux" case "$COMMAND" in remove) + if [ "$KERNEL_INSTALL_BOOT_ENTRY_TYPE" = "type1" ]; then + [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \ + echo "BOOT_ENTRY_TYPE=type1, not removing UKI related." + exit 0 + fi [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \ echo "Removing $UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION*.efi and extras" exec rm -rf \