summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-28 18:16:00 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-28 19:25:08 +0200
commitcd9e5d0a7697b3ccbc4dcb04444e6b42f5d309d1 (patch)
tree1b55da13d54a868efa53f8a68d5a66324589a74d
parentae556c210942cb6986c6d77b58505b5daa66bbe2 (diff)
logind: activate autovt@.service instead of autovt-getty@.service when the user switches to a previously unused tty, since it doesn't have to be a getty we start on it on demand
-rw-r--r--Makefile.am4
-rw-r--r--src/logind.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 4107787445..d110f313b6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1514,14 +1514,14 @@ endif
$(LN_S) graphical.target runlevel5.target && \
$(LN_S) reboot.target runlevel6.target )
( cd $(DESTDIR)$(systemunitdir) && \
- rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service autovt-getty@.service && \
+ rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.hostname1.service dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service autovt@.service && \
$(LN_S) graphical.target default.target && \
$(LN_S) reboot.target ctrl-alt-del.target && \
$(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service && \
$(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service && \
$(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service && \
$(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \
- $(LN_S) getty@.service autovt-getty@.service )
+ $(LN_S) getty@.service autovt@.service )
( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \
$(LN_S) ../getty.target getty.target && \
diff --git a/src/logind.c b/src/logind.c
index 8fa7661290..a0a89c0689 100644
--- a/src/logind.c
+++ b/src/logind.c
@@ -729,7 +729,7 @@ int manager_spawn_autovt(Manager *m, int vtnr) {
goto finish;
}
- if (asprintf(&name, "autovt-getty@tty%i.service", vtnr) < 0) {
+ if (asprintf(&name, "autovt@tty%i.service", vtnr) < 0) {
log_error("Could not allocate service name.");
r = -ENOMEM;
goto finish;