Silent boot: Difference between revisions

From Alpine Linux
(Created page with "==== 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 <u>simple</u> 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. ==== Setting up silent-boot ==== ==...")
 
(changed category to existing Category:Booting instead of new category Category:Boot process)
Tag: Manual revert
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==== What is silent boot? ====
== 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 <u>simple</u> to get back a verbose message boot, with this following wiki page guide.
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 <u>simple</u> 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.
This wiki page guide will remove all OpenRC messages, except login prompt. This will also remove kernel messages at boot.


==== Setting up silent-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.}}


===== Disable kernel messages: =====
== Setting up silent-boot ==


====== Grub ======
=== Disable kernel messages: ===
 
==== Grub ====
Edit /etc/default/grub and add quiet to the GRUB_CMDLINE_LINUX variable:
Edit /etc/default/grub and add quiet to the GRUB_CMDLINE_LINUX variable:
{{cat|/etc/default/grub|
{{cat|/etc/default/grub|
Line 14: Line 16:
}}
}}


====== Kernel-hooks ======
==== Kernel-hooks ====
Modify /etc/kernel-hooks.d/secureboot.conf and add quiet to cmdline:
Modify /etc/kernel-hooks.d/secureboot.conf and add quiet to cmdline:
{{cat|/etc/kernel-hooks.d/secureboot.conf|
{{cat|/etc/kernel-hooks.d/secureboot.conf|
Line 20: Line 22:
}}
}}


===== Disable OpenRC Boot messages: =====
=== Disable OpenRC Boot messages: ===
Make your /etc/inittab similar to this:
Make your <code>/etc/inittab</code> similar to this:
{{cat|/etc/inittab|
{{cat|/etc/inittab|
# /etc/inittab
# /etc/inittab
Line 37: Line 39:


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.
==== 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)