Skip to content

Commit

Permalink
91-grub-mkconfig.install: find efistub kernels as well (2)
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 abec108 commit c77f281
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions hooks/91-grub-mkconfig.install
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,23 @@ main() {
cp -v "${GRUB_CFG}"{,~} || die "Failed to save existing config"
fi

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:="
/boot/vmlinuz-* /boot/vmlinux-* /boot/kernel-* /vmlinuz-* /vmlinux-*
/boot/EFI/EFI/Linux/*.efi /boot/efi/EFI/Linux/*.efi
/boot/EFI/Linux/*.efi /efi/EFI/Linux/*.efi
/kernel-* /boot/EFI/EFI/${NAME}/*.efi /boot/efi/EFI/${NAME}/*.efi
/boot/EFI/${NAME}/*.efi /efi/EFI/${NAME}/*.efi
"}"
export GRUB_LINUX_KERNEL_GLOBS

Expand Down

0 comments on commit c77f281

Please sign in to comment.