Systemd | Do not clear tty console
mouse 2155 · person cloud · link
Last update
2017-05-04
2017
05-04
«systemctl/journalctl logging»
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# show all getty services
systemctl -a | grep getty.*service

# inspect the one we are interested in:
systemctl cat getty@tty1.service
# and note that the VT is cleared by TTYVTDisallocate=yes

# turn this off for all tty by adding a config file:
mkdir /etc/systemd/system/getty@.service.d
echo -en "[Service]\nTTYVTDisallocate=no" > \
  /etc/systemd/system/getty@.service.d/noclear.conf

systemctl daemon-reload # reload units

# reinspect the file and look at the bottom for your changes:
systemctl cat getty@tty1.service

# reboot and enjoy!

Note: You can always see all boot messages with the journalctl command.


Source: Wooledge wiki