- It's time for a change.
I'm going to show you Ubuntu.
So we need sudo vim /etc/default/grub.
And then we can see the Ubuntu version
of the /etc/default/grub.
What I like about it is that it's also telling us
where to find the documentation.
You know, documentation in many, many cases is in man.
But for the grub documentation, you really need info.
And if you use info -f grub -n 'Simple configuration'
you get to a location
where you can find all the documentation that you need.
Let me show you.
So, here you can see
all the different options that are available.
Now what do we need?
Grub default and grub timeout style is hidden.
Well, grub timeout style,
we need to know more about grub timeout style.
So, what is this?
Well, I'm using Slash to search for the regular expression
which is what you see in the lower left corner
and grub timeout style.
And there we can see the different options
that are available.
If this option is unset or set to menu, set to menu.
That's what we need.
Then grub will display the menu.
So that's one thing.
Set it to menu instead of timeout style hidden.
And grub timeout, we set that to 10 seconds.
And also, I want to have a look at the grub disable submenu,
which is kind of confusing.
So, GRUB_
DISABLE_
SUBMENU is showing us what?
Well, that is showing
what it wants to do
with this grub submenu.
Well, this grub submenu has nothing to do
with the options that we've got,
and I don't need that at all.
So grub timeout cell, that is what we are going to need.
Now, also here in this Ubuntu configuration,
you can see it's telling us to use update-grub.
Ubuntu is using update grub, not GRUB 2 mkconfig
because update grub is easier to use,
and that's all it is.
So, let's do sudo
update-grub
to write the configuration.
There we go.
And next, let's use sudo reboot
to figure out what the result is.
And there we go.
Here is the grub boot menu
in which I can select the option that I want to use
or do nothing.
Look at the lower line where we can see the counter
which is counting down.
And now it's starting the default menu entry.
And that's the end of lesson seven lab.