Skip to main content
Topic: Configure Grub. (Read 4106 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Configure Grub.

 Hello everyone.
 Please tell me what changes need to be made so that I press the power button and see only the entrance to the display manager?
 But if I suddenly needed to change the kernel, I could do it at boot time.
 I don't want to see menus and other information when the system boots.

Re: Configure Grub.

Reply #1
Hello.

You can configure a hidden menu, most likely it is still supported. It appeared if you press ESC or SHIFT or something else before the timeout, which was set in /etc/default/grub expired, I don't remember exactly. This could be achieved with the following lines:

Code: [Select]
GRUB_HIDDEN_TIMEOUT
GRUB_HIDDEN_TIMEOUT_QUIET

Search the Internet to see if these directives are outdated and what is currently used.

Re: Configure Grub.

Reply #2
Hello.

You can configure a hidden menu, most likely it is still supported. It appeared if you press ESC or SHIFT or something else before the timeout, which was set in /etc/default/grub expired, I don't remember exactly. This could be achieved with the following lines:

Code: [Select]
GRUB_HIDDEN_TIMEOUT
GRUB_HIDDEN_TIMEOUT_QUIET

Search the Internet to see if these directives are outdated and what is currently used.

There is also this:

Code: [Select]
# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Artix"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""

Change the TIMEOUT to 0
Looks like pressing SPACE during boot-up will still allow accessing the Grub menu
Supercalifragilisticexpialidocious

Re: Configure Grub.

Reply #3
Thank you very much for your answers. To be honest, I don't understand the logic since it doesn't work to the end anyway, I still see the process of booting the system, but I don't see the menu. I installed :

Code: [Select]
GRUB_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET=true


update grub

Code: [Select]
$ sudo grub-mkconfig -o /boot/grub/grub.cfg  

Re: Configure Grub.

Reply #4
I did this when I was on arch so I don't know if it will work https://wiki.archlinux.org/title/Silent_boot

UPDATE.

It is also worth finding out if the init you have chosen can hide messages.

Re: Configure Grub.

Reply #5
Similar discussion here

As I see it you could use plymouth with a custom theme which is just black (maybe such a theme exists or there is another way with plymouth ?). In conjunction with a non displaying bootloader that should get you your silent boot and be init agnostic.

Or as I mentioned in the thread linked I have implemented a silent boot (though I still see the rEFInd bootloader by design) on openrc by:
Adding quiet to the kernel command line.
Creating a wrapper for /usr/bin/openrc-init which exports EINFO_QUIET=True and specifying the wrapper as init on the kernel command line.
Patching openrc to modify the /etc/init.d files fsck and modules which were both originally coded to produce output
Patching mkinitcpio to prevent the rootfs fsck producing output from the initramfs.

I believe that last step would be required no matter the init in use.


Re: Configure Grub.

Reply #6
Thank you for your answers. I looked at the Arch wiki, but these hacks didn't work.
We need to study this issue a little deeper. At this point, I just installed

Code: [Select]
 GRUB_TIMEOUT="0" 

and this disables the menu, but by clicking on "ESC" I can bring up the menu.
What I don't understand yet how to disable is booting OpenRC and the system. I would like to click on the power button and see the window manager display))

 

Re: Configure Grub.

Reply #7
What I don't understand yet how to disable is booting OpenRC and the system. I would like to click on the power button and see the window manager display))
I just explained how. Which part don't you understand ?

Re: Configure Grub.

Reply #8
Thanks for your answer.

It doesn’t work for me what you recommended, I examined with these settings I don’t see any difference.

What would I like to get?

I press the power button and see the display manager (login and password)

Now I see the loading of the system, but the menu is not, that's good. I can also call the menu if I need (ESC) this is also good.

How to remove loading?

Re: Configure Grub.

Reply #9
Playing devils advocate and assuming you are able to do what you want, I would think you might want to see the booting process to view any possible issues, no?
Supercalifragilisticexpialidocious

Re: Configure Grub.

Reply #10
Thanks for your answer.

It doesn’t work for me what you recommended, I examined with these settings I don’t see any difference.
You're welcome but they weren’t settings
It involves patching and rebuilding packages.
Without doing that you are always going to see something appear on the screen. How much will depend on your init.

Or as I said you can hide it all with plymouth.
Playing devils advocate and assuming you are able to do what you want, I would think you might want to see the booting process to view any possible issues, no?
(Hey that's my job ;) )
You are right.
Where I've patched things it's only sending stdout to /dev/null so any errors will still be displayed.
Any errors (or warnings) in the openrc scripts will still showup with EINFO_QUIET=True
Because they are not of the INFO level. Blink and you'll miss it but then I can look in rc.log to see the problem.
Which was I had just set my keymap = "zzz" to test.
Also I still have a bootloader entry for a normal boot.


Re: Configure Grub.

Reply #11
Guys, thank you for your answers. Now I do NOT see the menu and see the loading and it does not last very long, this suits me at this stage.