Merge "Call grub2-mkconfig with --update-bls-cmdline"

This commit is contained in:
Zuul 2024-03-11 16:24:38 +00:00 committed by Gerrit Code Review
commit 2ba78f79a1
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@ if [[ ! $($GRUBNAME --version) =~ ' 2.' ]]; then
exit 1
fi
# Ensure BLS entries are updated with default args
if [[ $($GRUB_MKCONFIG --help) =~ '--update-bls-cmdline' ]]; then
GRUB_MKCONFIG="$GRUB_MKCONFIG --update-bls-cmdline"
fi
# Some distros keep things in /boot/grub2, others in /boot/grub
if [ -d /boot/grub2 ]; then
GRUB_CFG=/boot/grub2/grub.cfg