Skip to content

Commit

Permalink
91-grub-mkconfig.install: find efistub kernels as well
Browse files Browse the repository at this point in the history
Signed-off-by: Nowa Ammerlaan <[email protected]>
  • Loading branch information
Nowa-Ammerlaan committed Feb 21, 2025
1 parent 4bdaab8 commit abec108
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions hooks/systemd/91-grub-mkconfig.install
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,28 @@ KERNEL_INSTALL_BOOT_ROOT="/boot"

: "${GRUB_CFG:=${KERNEL_INSTALL_BOOT_ROOT}/grub/grub.cfg}"

if [[ -f /etc/os-release ]]; then
# shellcheck source=/dev/null
. /etc/os-release
elif [[ -f /usr/lib/os-release ]]; then
# shellcheck source=/dev/null
. /usr/lib/os-release
fi

# Set sane default if no or broken os-release
: "${NAME:=Linux}"

# The default GRUB_LINUX_KERNEL_GLOBS from /etc/grub/10_linux expanded
# with BLS type 2 locations where we may install an UKI
: "${GRUB_LINUX_KERNEL_GLOBS:="
/vmlinuz-* /vmlinux-*
/efi/EFI/Linux/*.efi
/vmlinuz-* /vmlinux-* /kernel-*
/efi/EFI/${NAME}/*.efi
${KERNEL_INSTALL_BOOT_ROOT}/vmlinuz-*
${KERNEL_INSTALL_BOOT_ROOT}/vmlinux-*
${KERNEL_INSTALL_BOOT_ROOT}/kernel-*
${KERNEL_INSTALL_BOOT_ROOT}/EFI/Linux/*.efi
${KERNEL_INSTALL_BOOT_ROOT}/EFI/EFI/Linux/*.efi
${KERNEL_INSTALL_BOOT_ROOT}/efi/EFI/Linux/*.efi
${KERNEL_INSTALL_BOOT_ROOT}/EFI/${NAME}/*.efi
${KERNEL_INSTALL_BOOT_ROOT}/EFI/EFI/${NAME}/*.efi
${KERNEL_INSTALL_BOOT_ROOT}/efi/EFI/${NAME}/*.efi
"}"
export GRUB_LINUX_KERNEL_GLOBS

Expand Down

0 comments on commit abec108

Please sign in to comment.