vt2-6 still not available with base system
Samuel Thibault
sthibault at debian.org
Mon Dec 8 00:12:14 GMT 2014
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.
Samuel
-------------- next part --------------
--- debian/changelog.original 2014-12-08 00:47:40.570640003 +0100
+++ debian/changelog 2014-12-08 00:48:27.972968147 +0100
@@ -1,3 +1,9 @@
+systemd (215-9) UNRELEASED; urgency=medium
+
+ * Always enable vt2-6. (Closes: #760916)
+
+ -- Samuel Thibault <sthibault at debian.org> Mon, 08 Dec 2014 00:47:17 +0100
+
systemd (215-8) unstable; urgency=medium
[ Didier Roche ]
--- debian/systemd.postinst.original 2014-12-05 10:01:35.000000000 +0100
+++ debian/systemd.postinst 2014-12-08 00:49:31.440085305 +0100
@@ -123,6 +123,15 @@
_systemctl try-restart systemd-timesyncd.service || true
fi
+# Now enable all gettys by default
+if dpkg --compare-versions "$2" lt "215-9"; then
+ systemctl enable getty at tty2.service || true
+ systemctl enable getty at tty3.service || true
+ systemctl enable getty at tty4.service || true
+ systemctl enable getty at tty5.service || true
+ systemctl enable getty at tty6.service || true
+fi
+
# Enable getty and remote-fs.target by default on new installs, and on
# upgrades from old systemd versions (where the symlinks included as deb
# content, and will thus have been removed by dpkg during the upgrade).
--- debian/systemd.preinst.original 2014-12-05 10:01:35.000000000 +0100
+++ debian/systemd.preinst 2014-12-08 00:46:28.091353385 +0100
@@ -40,6 +40,11 @@
save_is_enabled console-shell.service
save_is_enabled debug-shell.service
save_is_enabled getty at tty1.service
+ save_is_enabled getty at tty2.service
+ save_is_enabled getty at tty3.service
+ save_is_enabled getty at tty4.service
+ save_is_enabled getty at tty5.service
+ save_is_enabled getty at tty6.service
save_is_enabled remote-fs.target
save_is_enabled rescue.target
save_is_enabled systemd-readahead-collect.service
More information about the Pkg-systemd-maintainers
mailing list