[3/4] flash-image: Enable GRUB_FIRST_BOOT setting

Message ID 20210727100710.5331-3-michael.tremer@ipfire.org
State Accepted
Commit dd730a395bd5f2b5becd6d56cdd998e395a19a33
Headers
Series [1/4] flash-images: Label serial console option as "serial" |

Commit Message

Michael Tremer July 27, 2021, 10:07 a.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/flash-images | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/lfs/flash-images b/lfs/flash-images
index 72e635073..ca1ffa5e0 100644
--- a/lfs/flash-images
+++ b/lfs/flash-images
@@ -188,7 +188,8 @@  ifeq "$(BOOTLOADER)" "grub"
 
 	# Create configuration
 	mkdir -pv $(MNThdd)/boot/grub
-	chroot $(MNThdd) grub-mkconfig -o /boot/grub/grub.cfg
+	GRUB_FIRST_BOOT=true chroot $(MNThdd) \
+		grub-mkconfig -o /boot/grub/grub.cfg
 
 	# Boot the first kernel by default
 	chroot $(MNThdd) grub-set-default 0