2024-07-14 11:56:25 -04:00
|
|
|
## Copyright (C) 2019 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
|
|
|
## See the file COPYING for copying conditions.
|
|
|
|
|
2024-07-16 10:49:25 -04:00
|
|
|
## Some default configuration files automatically include the "quiet" parameter.
|
2024-07-17 11:38:53 -04:00
|
|
|
## Therefore, first remove "quiet" from GRUB_CMDLINE_LINUX_DEFAULT since "quiet" must be first.
|
2024-07-16 10:49:25 -04:00
|
|
|
## LANG=C str_replace is provided by package helper-scripts.
|
|
|
|
##
|
|
|
|
## https://github.com/Kicksecure/security-misc/pull/233#issuecomment-2228792461
|
|
|
|
##
|
|
|
|
GRUB_CMDLINE_LINUX_DEFAULT="$(echo "$GRUB_CMDLINE_LINUX_DEFAULT" | LANG=C str_replace "quiet" "")"
|
|
|
|
|
2024-07-14 11:56:25 -04:00
|
|
|
## Prevent sensitive kernel information leaks in the console during boot.
|
2024-07-15 00:39:12 -04:00
|
|
|
## Must be used in combination with the kernel.printk sysctl.
|
|
|
|
## See /usr/lib/sysctl.d/30_silent-kernel-printk.conf for implementation.
|
2024-07-14 11:56:25 -04:00
|
|
|
##
|
2024-07-15 00:50:29 -04:00
|
|
|
## https://www.kernel.org/doc/html/latest/core-api/printk-basics.html
|
2024-07-14 11:56:25 -04:00
|
|
|
## https://wiki.archlinux.org/title/silent_boot
|
|
|
|
##
|
2024-07-15 00:39:12 -04:00
|
|
|
## For easier debugging, these are not applied to the recovery boot option.
|
|
|
|
## Switch the pair of commands to universally apply parameters to all boot options.
|
|
|
|
##
|
2024-07-14 11:56:25 -04:00
|
|
|
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT loglevel=0"
|
2024-07-15 00:39:12 -04:00
|
|
|
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT quiet"
|
|
|
|
#GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX loglevel=0"
|
|
|
|
#GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX quiet"
|
|
|
|
|
|
|
|
## For Increased Log Verbosity:
|
2024-07-15 00:57:40 -04:00
|
|
|
## Adjust (or comment out) the kernel.printk sysctl in /usr/lib/sysctl.d/30_silent-kernel-printk.conf.
|
2024-07-17 08:39:20 -04:00
|
|
|
## Alternatively, installing the debug-misc package will undo these settings.
|