]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/flash-images
flash-image: Make sure that GRUB boots the first entry
[ipfire-2.x.git] / lfs / flash-images
index f2ac6a34a154579214fc9ac522919d9c66a78ead..79fa75ba8062771d683c8b590a56e44e9e2824b8 100644 (file)
@@ -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 \