From: Michael Tremer Date: Wed, 6 Jun 2018 11:06:54 +0000 (+0100) Subject: flash-image: Make sure that GRUB boots the first entry X-Git-Tag: v2.21-core123~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f2a90b5521eec74569c8d6f1a9902fc0aa44bbf;hp=bc91a66281193d7fca60858e5efed5ec73ad9fe0;p=people%2Fpmueller%2Fipfire-2.x.git flash-image: Make sure that GRUB boots the first entry This is required when importing an image into AWS EC2 or the import of the image fails. Signed-off-by: Michael Tremer --- diff --git a/lfs/flash-images b/lfs/flash-images index f2ac6a34a1..79fa75ba80 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -163,6 +163,9 @@ ifeq "$(BOOTLOADER)" "grub" mkdir -pv $(MNThdd)/boot/grub chroot $(MNThdd) grub-mkconfig -o /boot/grub/grub.cfg + # Boot the first kernel by default + chroot $(MNThdd) grub-set-default 0 + # Insert the UUID because grub-mkconfig often fails to # detect that correctly sed -i $(MNThdd)/boot/grub/grub.cfg \