Ubuntu 18.04 desktop minimal change
Here is the minimal change to /etc/default/grub
I needed to do on Ubuntu 18.04 desktop image to get things working nicely:
# Show the menu by default. Otherwise, you have to press ESC to see GRUB:
# https://askubuntu.com/questions/16042/how-to-get-to-the-grub-menu-at-boot-time/1091821#1091821
-GRUB_TIMEOUT_STYLE=hidden
+#GRUB_TIMEOUT_STYLE=hidden
# Optional kernel options that you very likely want. Don't affect GRUB itself.
# Remove quiet to show the boot logs on terminal. Otherwise, you see just init onwards.
# Add console=ttyS0, or else kernel does not output anything to terminal.
-GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
-GRUB_CMDLINE_LINUX=""
+GRUB_CMDLINE_LINUX_DEFAULT=""
+GRUB_CMDLINE_LINUX="console=ttyS0"
# Show grub on both serial and on display.
-#GRUB_TERMINAL=console
+GRUB_TERMINAL="console serial"
and then:
sudo update-grub
Tested with this QEMU setup: https://askubuntu.com/revisions/1046792/24
First I logged in once with the GUI, edited those configs, and then re-booted the VM.
Ubuntu 18.04 cloud image
Keep in mind that this image also has a file:
/etc/default/grub.d/50-cloudimg-settings.cfg
which overrides settings from /etc/default/grub
.
Besides the desktop settings, you also need to set:
GRUB_TIMEOUT=10
since the default is 0
and gives you no time to access the GRUB menu.
Tested with this setup: Is there any prebuilt QEMU Ubuntu image(32bit) online?
/etc/default/grub
using a live session... otherwise, I have no idea – Zanna Jun 13 '17 at 12:45/boot/grub/grub.cfg
to get into the OS and i was able to edit/etc/default/grub
after that. – feitingen Jun 15 '17 at 09:31