diff --git a/src/kernel-install/90-uki-copy.install b/src/kernel-install/90-uki-copy.install index d6f71349cb9..04bf5d1752f 100755 --- a/src/kernel-install/90-uki-copy.install +++ b/src/kernel-install/90-uki-copy.install @@ -34,9 +34,10 @@ UKI_DIR="$BOOT_ROOT/EFI/Linux" case "$COMMAND" in remove) [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \ - echo "Removing $UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION*.efi" - exec rm -f \ + echo "Removing $UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION*.efi and extras" + exec rm -rf \ "$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION.efi" \ + "$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION.efi.extra.d/" \ "$UKI_DIR/$ENTRY_TOKEN-$KERNEL_VERSION+"*".efi" ;; add)