Skip to content

Commit

Permalink
Do not override stub grub.cfg on EFI partition
Browse files Browse the repository at this point in the history
Grub2 in R4.2 is made to include grub.cfg from primary /boot partition,
even on EFI systems - so it always lives in the same place. Do not not
override the config stub.

QubesOS/qubes-issues#7985
  • Loading branch information
marmarek committed Jan 13, 2023
1 parent fa450c6 commit a87ab03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system-config/kernel-grub2.install
Expand Up @@ -22,7 +22,8 @@ if [ -x /usr/sbin/grub2-mkconfig ]; then
if [ -e /boot/grub2/grub.cfg ]; then
grub2-mkconfig -o /boot/grub2/grub.cfg
fi
if [ -e /boot/efi/EFI/qubes/grub.cfg ]; then
if [ -e /boot/efi/EFI/qubes/grub.cfg ] && \
! grep -q "configfile" /boot/efi/EFI/qubes/grub.cfg; then
grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
fi
fi

0 comments on commit a87ab03

Please sign in to comment.