Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476818 - Systemd guide should explain people how to prevent tty1 clearing (like it's documented with agetty+openrc)
Summary: Systemd guide should explain people how to prevent tty1 clearing (like it's d...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-14 11:06 UTC by Pacho Ramos
Modified: 2017-08-06 15:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2013-07-14 11:06:10 UTC
I found it in:
https://wiki.archlinux.org/index.php/Disable_Clearing_of_Boot_Messages

And would incorporate it to our wiki if you don't disagree

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2013-07-20 10:20:26 UTC
http://wiki.gentoo.org/wiki/Systemd#Configuration_files

Added
Comment 2 Mike Gilbert gentoo-dev 2013-07-20 23:43:49 UTC
Re-opening this. Telling people to modify that file directly is not a good idea.

floppym@naomi ~ % readlink /etc/systemd/system/getty.target.wants/getty@tty1.service
/usr/lib/systemd/system/getty@.service

Effectively, you are telling them to edit /usr/lib/systemd/system/getty@.service, which will get overwritten during their next systemd upgrade.
Comment 3 Mike Gilbert gentoo-dev 2013-07-20 23:48:33 UTC
I have removed that small paragraph from the wiki.

A better solution is this, which overrides the getty@.serivce file.

floppym@naomi ~ % cat /etc/systemd/system/getty@.service 
.include /usr/lib/systemd/system/getty@.service
[Service]
TTYVTDisallocate=no

I'm not sure where to put that in the wiki article though. Maybe in the section about "custom" units?
Comment 4 Pacho Ramos gentoo-dev 2013-07-21 06:58:00 UTC
(In reply to Mike Gilbert from comment #3) 
> I'm not sure where to put that in the wiki article though. Maybe in the
> section about "custom" units?

Or maybe as a new subsection below "custom" but still inside "configuration" section
Comment 5 Alexander Tsoy 2013-07-23 15:48:48 UTC
Another solution:

$ cat /etc/systemd/system/getty@tty1.service.d/noclear.conf 
[Service]
TTYVTDisallocate=no
Comment 6 Mike Gilbert gentoo-dev 2013-07-23 16:28:47 UTC
(In reply to Alexander Tsoy from comment #5)

Oh, I forgot about the foo.d option. I like this better.
Comment 7 Pacho Ramos gentoo-dev 2013-08-14 12:53:10 UTC
(In reply to Mike Gilbert from comment #6)
> (In reply to Alexander Tsoy from comment #5)
> 
> Oh, I forgot about the foo.d option. I like this better.

I agree, only doubt about where to place it :(
Comment 8 Pacho Ramos gentoo-dev 2013-09-21 13:46:35 UTC
(In reply to Alexander Tsoy from comment #5)
> Another solution:
> 
> $ cat /etc/systemd/system/getty@tty1.service.d/noclear.conf 
> [Service]
> TTYVTDisallocate=no

Other option would be to install this file (commented), what do you think?
Comment 9 Pacho Ramos gentoo-dev 2013-10-11 06:27:09 UTC
(In reply to Pacho Ramos from comment #8)
> (In reply to Alexander Tsoy from comment #5)
> > Another solution:
> > 
> > $ cat /etc/systemd/system/getty@tty1.service.d/noclear.conf 
> > [Service]
> > TTYVTDisallocate=no
> 
> Other option would be to install this file (commented), what do you think?

That is what opensuse people is doing