Difference between revisions of "Talk:Disable clearing of boot messages"

From ArchWiki
Jump to: navigation, search
(Remove quiet from GRUB_CMDLINE_LINUX_DEFAULT)
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
  
 
<code>c1:2345:respawn:/sbin/agetty '''--noclear''' -8 -s 38400 tty1 linux</code>
 
<code>c1:2345:respawn:/sbin/agetty '''--noclear''' -8 -s 38400 tty1 linux</code>
 +
 +
== Better use a drop-in file ? ==
 +
<code>/etc/systemd/system/getty.target.wants/getty@tty1.service</code> is a symlink to <code>/usr/lib/systemd/system/getty@service</code>.
 +
 +
I think, it is better to create a drop-in directory <code>/etc/systemd/system/getty@tty1.service.d/</code> and place this file in it to override <code>TTYVTDisallocate</code> only:
 +
{{hc|1=/etc/systemd/system/getty@tty1.service.d/noclear.conf|2=
 +
[Service]
 +
TTYVTDisallocate=no
 +
}}

Latest revision as of 15:17, 1 July 2014

Remove quiet from GRUB_CMDLINE_LINUX_DEFAULT

It may be worth to mention removing flag quiet from GRUB_CMDLINE_LINUX_DEFAULT in /etc/defaults/grub in order to see the actual boot messages, systemd startup status, etc.. Many users may miss this important step. --Mloskot (talk) 00:19, 16 March 2013 (UTC)

+1. Suggestion: Link to Kernel parameters instead of list for specific bootloader. -- Fengchao (talk) 09:42, 19 March 2013 (UTC)
Yes, link would do, but IMO it's also important to give a note explaining that it is about enabling verbose logging of booting process --Mloskot (talk) 13:38, 19 March 2013 (UTC)

On legacy installations running without systemd, there is another solution. To avoid clearing the screen after boot, the /etc/inittab file must be changed. Just add a --noclear option to the getty respawn lines:

c1:2345:respawn:/sbin/agetty --noclear -8 -s 38400 tty1 linux

Better use a drop-in file ?

/etc/systemd/system/getty.target.wants/getty@tty1.service is a symlink to /usr/lib/systemd/system/getty@service.

I think, it is better to create a drop-in directory /etc/systemd/system/getty@tty1.service.d/ and place this file in it to override TTYVTDisallocate only:

/etc/systemd/system/getty@tty1.service.d/noclear.conf
[Service]
TTYVTDisallocate=no