[neon/neon/livecd-rootfs/Neon/release] live-build/buildd/hooks: Set grub configs to hide boot menu and enable output on ttyS0

Cody Shepherd null at kde.org
Mon Aug 23 10:20:36 BST 2021


Git commit 61a422f55332fc2d82f50bac966f467f258fe6a0 by Cody Shepherd.
Committed on 01/03/2021 at 17:04.
Pushed by jriddell into branch 'Neon/release'.

Set grub configs to hide boot menu and enable output on ttyS0

M  +10   -0    live-build/buildd/hooks/02-disk-image-uefi.binary

https://invent.kde.org/neon/neon/livecd-rootfs/commit/61a422f55332fc2d82f50bac966f467f258fe6a0

diff --git a/live-build/buildd/hooks/02-disk-image-uefi.binary b/live-build/buildd/hooks/02-disk-image-uefi.binary
index f75e3aa2..8b84afd3 100755
--- a/live-build/buildd/hooks/02-disk-image-uefi.binary
+++ b/live-build/buildd/hooks/02-disk-image-uefi.binary
@@ -121,6 +121,16 @@ install_grub() {
         chroot mountpoint grub-install --target=i386-pc "${loop_device}"
     fi
 
+    cat > mountpoint/etc/default/grub.d/50-builddimg-settings.cfg << EOF
+GRUB_DEFAULT=0
+GRUB_HIDDEN_TIMEOUT=0.1
+GRUB_HIDDEN_TIMEOUT_QUIET=true
+GRUB_TIMEOUT=0.1
+GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"
+GRUB_RECORDFAIL_TIMEOUT=0
+GRUB_TERMINAL=console
+EOF
+
     divert_grub mountpoint
     chroot mountpoint update-grub
     replace_grub_root_with_label mountpoint



More information about the Neon-commits mailing list