Commit c4b5782f authored by Martin Pitt's avatar Martin Pitt

Statically start getty on tty2-6 without logind

Add getty-static.service unit which starts getty@.service on tty 2 to 6 if dbus
is not installed, and hence logind cannot auto-start them on demand.

Closes: #772700
parent a7d7679f
......@@ -8,6 +8,9 @@ systemd (215-12) UNRELEASED; urgency=medium
* Only start logind if dbus is installed. This fixes the noisy startup
failure in environments without dbus such as LXC containers or servers.
(part of #772700)
* Add getty-static.service unit which starts getty@.service on tty 2 to 6 if
dbus is not installed, and hence logind cannot auto-start them on demand.
(Closes: #772700)
-- Martin Pitt <mpitt@debian.org> Fri, 30 Jan 2015 15:56:22 +0100
......
[Unit]
Description=getty on tty2-tty6 if dbus and logind are not available
ConditionPathExists=/dev/tty2
ConditionFileIsExecutable=!@DBUS_DAEMONDIR@/dbus-daemon
[Service]
Type=oneshot
ExecStart=/bin/systemctl --no-block start getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service
RemainAfterExit=true
......@@ -236,6 +236,9 @@ endif
rm debian/udev/lib/udev/rules.d/71-seat.rules
rm debian/udev/lib/udev/rules.d/99-systemd.rules
# Debian specific units
sed "s!@DBUS_DAEMONDIR@!$$(pkg-config --variable=daemondir dbus-1)!" < debian/extra/getty-static.service.in > debian/systemd/lib/systemd/system/getty-static.service
# use symlinked doc directories as the old udev package did
override_dh_installdocs:
dh_installdocs -pudev -plibudev-dev --link-doc=libudev1
......
......@@ -75,8 +75,9 @@
# We have the journal to handle kernel messages from early boot
/dev/null /lib/systemd/system/bootlogs.service
# Run fixups early
# Enable Debian specific units
/lib/systemd/system/debian-fixup.service /lib/systemd/system/sysinit.target.wants/debian-fixup.service
/lib/systemd/system/getty-static.service /lib/systemd/system/getty.target.wants/getty-static.service
# Compat symlink
/lib/systemd/systemd /bin/systemd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment