Silent boot: Difference between revisions

From Alpine Linux
mNo edit summary
(changed category to existing Category:Booting instead of new category Category:Boot process)
Tag: Manual revert
 
(4 intermediate revisions by 2 users not shown)
Line 40: Line 40:
Remove the "<code>&> /dev/null</code>" on each line to see OpenRC boot messages again.
Remove the "<code>&> /dev/null</code>" on each line to see OpenRC boot messages again.


[[Category:Security]] [[Category:Privacy]] [[Category:Boot]]
==== External sources ====
Alpine Linux Silent Boot with cmatrix (youtube) (not mine)
* [https://www.youtube.com/watch?v=HoltBFnu0yo https://www.youtube.com/watch?v=HoltBFnu0yo] [1]
 
[[Category:Security]] [[Category:Booting]]

Latest revision as of 02:51, 15 December 2024

What is silent boot?

Silent boot means to almost completely remove all kernel and OpenRC messages on boot from your system. This may make it harder to debug issues when booting your computer, but it is also relatively simple to get back a verbose message boot, with this following wiki page guide.

This wiki page guide will remove all OpenRC messages, except login prompt. This will also remove kernel messages at boot.

Note: This wiki guide is done without any frame buffers. You may use frame buffers to add a gui boot (such as adding a logo) when booting linux.

Setting up silent-boot

Disable kernel messages:

Grub

Edit /etc/default/grub and add quiet to the GRUB_CMDLINE_LINUX variable:

Contents of /etc/default/grub

GRUB_CMDLINE_LINUX="... quiet ..."

Kernel-hooks

Modify /etc/kernel-hooks.d/secureboot.conf and add quiet to cmdline:

Contents of /etc/kernel-hooks.d/secureboot.conf

cmdline="... quiet ..."

Disable OpenRC Boot messages:

Make your /etc/inittab similar to this:

Contents of /etc/inittab

# /etc/inittab ::sysinit:/sbin/openrc sysinit &> /dev/null ::sysinit:/sbin/openrc boot &> /dev/null ::wait:/sbin/openrc default &> /dev/null # Set up one getty tty1::respawn:/sbin/getty 38400 tty1 # Stuff to do before rebooting ::shutdown:/sbin/openrc shutdown &> /dev/null

Remove the "&> /dev/null" on each line to see OpenRC boot messages again.

External sources

Alpine Linux Silent Boot with cmatrix (youtube) (not mine)