Report this

What is the reason for this report?

How to see grub boot menu at startup (to choose boot alternative)

Posted on March 29, 2022

I’m working on creating a Custom Droplet Boot Image – with the image being created in a standard droplet running Debian. I need to create custom Grub Menu Entries. In anticipation of debugging, I’m trying to discover how to be presented the droplets main grub boot selection menu (i.e. on main console, not Rescue Console.

How can I tell droplet spinup to present the grub menu instead of blowing past?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If you want to customize the Grub Menu Entries on your Droplet, you can edit the /etc/default/grub configuration file. To display the Grub boot menu during the Droplet’s startup, you should modify the following options:

GRUB_TIMEOUT: Set the time (in seconds) that the menu will be displayed before automatically booting the default entry. For example, GRUB_TIMEOUT=10 shows the menu for 10 seconds. GRUB_HIDDEN_TIMEOUT: Set this to a non-zero value if you want the menu to be hidden unless the Shift key is pressed during the startup. GRUB_HIDDEN_TIMEOUT_QUIET: Set this to false if you want to show a countdown while waiting for the Shift key to be pressed.

After modifying the configuration, you should run sudo update-grub to apply your changes. Note that making changes to these settings may increase the risk of making your Droplet unbootable, so proceed with caution.

Don’t forget to create a snapshot of your customized Droplet to create your Custom Droplet Boot Image. For more information about custom images, visit the DigitalOcean documentation: https://docs.digitalocean.com/products/images/custom-images

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.