Difference between revisions of "Silent boot"

From ArchWiki
Jump to: navigation, search
(Created page with 'Introduction This page is for those who, like me, prefer to limit the verbosity of their system to a strict minimum, either for aesthetic reasons or any other reasons. The aim …')
 
(Syslinux+Systemd)
(33 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Introduction
+
[[Category:Boot process]]
 +
This page is for those who prefer to limit the verbosity of their system to a strict minimum, either for aesthetics or other reasons. Following this guide will remove all text from the bootup process.
  
This page is for those who, like me, prefer to limit the verbosity of their system to a strict minimum, either for aesthetic reasons or any other reasons.
+
==Syslinux+Systemd==
  
The aim of this page is to give you instruction to remove all text from the boot process. To achive this, we will need to change ;
+
Your /boot/syslinux/syslinux.cfg should look something like:
  
1 - Grub sources
+
    $ grep APPEND /boot/syslinux/syslinux.cfg | head -n1
 +
    APPEND root=/dev/sda1 ro 5 init=/usr/lib/systemd/systemd quiet vga=current
  
2 - Grub configs
+
vga=current is the magic ''kernel argument'' not to do something crazy like [https://bugs.archlinux.org/task/32309 flash grey].
  
3 - /etc/issue
+
Configure your systemd getty service like so:
  
4 - /etc/inittab
+
    x220:~$ grep ExecStart /usr/lib/systemd/system/getty@.service
 +
    ExecStart=-/sbin/agetty --skip-login --noissue --autologin YOUR_USERNAME %I 38400
 +
 
 +
To remove lastlog message you need to comment out ''lastlog'' in /etc/pam.d/login:
 +
 
 +
    #session                optional        pam_lastlog.so
 +
 
 +
To hide any kernel messages from the console use [http://unix.stackexchange.com/a/45525/27433 this tip]:
 +
 
 +
    $ grep ^kernel.printk /etc/sysctl.conf
 +
    kernel.printk = 3 3 3 3
 +
 
 +
To hide startx messages, you could redirect its output to /dev/null, like so:
 +
 
 +
    [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 &> /dev/null
 +
 
 +
Outstanding Issues:
 +
* [https://github.com/karelzak/util-linux/issues/21 agetty's automatic login is noisy]
 +
* [https://bugs.freedesktop.org/show_bug.cgi?id=57216 Systemd shutdowns are not quiet]

Revision as of 01:54, 20 November 2012

This page is for those who prefer to limit the verbosity of their system to a strict minimum, either for aesthetics or other reasons. Following this guide will remove all text from the bootup process.

Syslinux+Systemd

Your /boot/syslinux/syslinux.cfg should look something like:

   $ grep APPEND /boot/syslinux/syslinux.cfg | head -n1
   APPEND root=/dev/sda1 ro 5 init=/usr/lib/systemd/systemd quiet vga=current

vga=current is the magic kernel argument not to do something crazy like flash grey.

Configure your systemd getty service like so:

   x220:~$ grep ExecStart /usr/lib/systemd/system/getty@.service
   ExecStart=-/sbin/agetty --skip-login --noissue --autologin YOUR_USERNAME %I 38400

To remove lastlog message you need to comment out lastlog in /etc/pam.d/login:

    #session                optional        pam_lastlog.so

To hide any kernel messages from the console use this tip:

   $ grep ^kernel.printk /etc/sysctl.conf 
   kernel.printk = 3 3 3 3

To hide startx messages, you could redirect its output to /dev/null, like so:

   [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 &> /dev/null

Outstanding Issues: