From 85fd344f48a0324876c7ac4725383b95f2d470f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Go=C5=82a=C5=9B?= Date: Tue, 24 Feb 2026 08:19:15 +0100 Subject: [PATCH] ubuntu&fedora: add grub recordfail timeout to prevent it hanging there MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When some kind of issue with booting the OS occurs, GRUB will *record* the *fail* and enter recordfail mode where by default there is no grub timeout and the OS will never boot without intervention and selecting the boot option Signed-off-by: Filip Gołaś --- fedora/ks.cfg | 1 + ubuntu/autoinstall.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/fedora/ks.cfg b/fedora/ks.cfg index aa96dc0..3292524 100644 --- a/fedora/ks.cfg +++ b/fedora/ks.cfg @@ -40,6 +40,7 @@ echo 3mdeb > /etc/hostname # FULL GRUB CONFIG FOR SERIAL SUPPORT sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=5/' /etc/default/grub +sed -i 's/^GRUB_RECORDFAIL_TIMEOUT=.*/GRUB_RECORDFAIL_TIMEOUT=5/' /etc/default/grub sed -i 's/^GRUB_TIMEOUT_STYLE=.*/GRUB_TIMEOUT_STYLE=menu/' /etc/default/grub sed -i 's/^#GRUB_TERMINAL=.*/GRUB_TERMINAL="serial gfxterm"/' /etc/default/grub sed -i 's/\(^GRUB_CMDLINE_LINUX=".*\)"/\1 rhgb quiet console=tty0 console=ttyS0,115200 console=ttyUSB0,115200"/' /etc/default/grub diff --git a/ubuntu/autoinstall.yml b/ubuntu/autoinstall.yml index aea95f5..47ff2ca 100644 --- a/ubuntu/autoinstall.yml +++ b/ubuntu/autoinstall.yml @@ -50,6 +50,7 @@ autoinstall: - chroot /target sed -i 's/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=5/' /etc/default/grub - chroot /target sed -i 's/kernel.printk.*/kernel.printk = 1 4 1 7/' /etc/sysctl.d/10-console-messages.conf - chroot /target sed -i 's/^GRUB_TIMEOUT_STYLE=.*/GRUB_TIMEOUT_STYLE=menu/' /etc/default/grub + - chroot /target sed -i 's/^GRUB_RECORDFAIL_TIMEOUT=.*/GRUB_RECORDFAIL_TIMEOUT=5/' /etc/default/grub - chroot /target sed -i 's/^#GRUB_TERMINAL=.*/GRUB_TERMINAL="serial gfxterm"/' /etc/default/grub - chroot /target sed -i '/\[daemon\]/a AutomaticLoginEnable = True\nAutomaticLogin = ubuntu\n' /etc/gdm3/custom.conf - mount --bind /proc /target/proc