From e82ba2a612124db29b64dc9c084dc81cb222c685 Mon Sep 17 00:00:00 2001 From: Daniil Klimuk Date: Wed, 17 Apr 2024 10:21:43 +0200 Subject: [PATCH] ubuntu: main.cfg: display GRUB menu on serial and screen Signed-off-by: Daniil Klimuk --- ubuntu/main.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubuntu/main.cfg b/ubuntu/main.cfg index 0d726a5..59dfb7d 100644 --- a/ubuntu/main.cfg +++ b/ubuntu/main.cfg @@ -52,6 +52,8 @@ ubiquity ubiquity/success_command string \ in-target sed -i 's/\(^GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 console=tty0 console=ttyS0,115200"/' /etc/default/grub;\ in-target sed -i 's/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=5/' /etc/default/grub;\ in-target sed -i 's/kernel.printk.*/kernel.printk = 1 4 1 7/' /etc/sysctl.d/10-console-messages.conf;\ + in-target sed -i 's/^GRUB_TIMEOUT_STYLE=.*/GRUB_TIMEOUT_STYLE=menu/' /etc/default/grub;\ + in-target sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL="serial gfxterm"/' /etc/default/grub;\ mount --bind /proc /target/proc;\ mount --bind /sys /target/sys;\ mount --bind /dev /target/dev;\