Skip to content

Commit

Permalink
ubuntu: main.cfg: display GRUB menu on serial and screen
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Klimuk <[email protected]>
  • Loading branch information
DaniilKl committed Apr 17, 2024
1 parent 3717eb4 commit e82ba2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ubuntu/main.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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;\
Expand Down

0 comments on commit e82ba2a

Please sign in to comment.