mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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 <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user