Bug#772700: vt2-6 still not available with base system

Michael Biebl biebl at debian.org
Fri Dec 12 15:26:24 GMT 2014


Am 08.12.2014 um 01:12 schrieb Samuel Thibault:
> Michael Biebl, le Thu 04 Dec 2014 00:10:57 +0100, a écrit :
>> Am 03.12.2014 um 22:42 schrieb Samuel Thibault:
>>> Simon McVittie, le Sun 09 Nov 2014 20:43:36 +0000, a écrit :
>>>> I'm very tempted to say systemd in Debian should just make these 5
>>>> symlinks to preserve traditional Debian behaviour, at least for
>>>> jessie. It doesn't really even need to run systemctl, it can just use
>>>> ln -s or whatever. People who are so desperately short of memory that
>>>> 5 agetty instances are undesired can always disable them.
>>>>
>>>> If you want it to be clear that it's a Debian-specific thing that's
>>>> pulling them in, maybe it would be better to add a new
>>>> debian-gettys.target or debian-gettys.service that Wants them, and make
>>>> it WantedBy an appropriate target?
>>>
>>> That looks like the simplest way for now.
>>
>> Does anyone want to look into this and provide a patch for such a
>> "static" gettys target. Maybe we could even make it Conditional on
>> /usr/bin/dbus-daemon not being installed.
> 
> I don't know how to do that, here is a more trivial way: simply doing
> the same as for tty1.  I can confirm that this also fixes bug #760916.

Since apparently Conditions can't be used on targets, I came up with a
slightly different idea, using a service, which triggers the start of
getty on tty2-6 in absence of /usr/bin/dbus-daemon.

The advantage of that static-getty.service compared to enabling getty on
tty2-6 is, that we can easily drop that again in jessie+X once we have
kdbus.
Removing the symlinks in /etc/systemd/system/getty.target.wants/ on
upgrades is tricky, since those can actually be created by the admin and
in this case we don't want to remove it.


Comments welcome

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
[Unit]
Description=Start static gettys on tty2-tty6
ConditionFileIsExecutable=!/usr/bin/dbus-daemon

[Service]
Type=oneshot
ExecStart=/bin/systemctl --no-block start getty at tty2.service getty at tty3.service getty at tty4.service getty at tty5.service getty at tty6.service
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141212/19949e63/attachment-0005.sig>


More information about the Pkg-systemd-maintainers mailing list