From eb2de6793d9c2849918b040f5dfaa5d56f60581a Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Fri, 25 Aug 2023 13:31:05 +0200 Subject: [PATCH] Don't run 20-grub.install for UKIs When kernel-install is called for a UKI, 20-grub.install copies it to /boot which is totally unneeded, UKIs are now handled by the standard systemd's 90-uki-copy.install (systemd-253+) correctly which places them to the ESP. Signed-off-by: Vitaly Kuznetsov --- 20-grub.install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/20-grub.install b/20-grub.install index 1114cf5..5ef2132 100755 --- a/20-grub.install +++ b/20-grub.install @@ -19,6 +19,9 @@ MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID # If ${BOOT_DIR_ABS} exists, some other boot loader is active. [[ -d "${BOOT_DIR_ABS}" ]] && exit 0 +# UKIs are BLS type 2 entries, 90-uki-copy.install takes care of them +[ "x$KERNEL_INSTALL_LAYOUT" != "xuki" ] || exit 0 + BLS_DIR="/boot/loader/entries" mkbls() {