[systemd-devel] [PATCH] units: Make getty at .service install rule generic.

Colin Guthrie colin at mageia.org
Wed Feb 6 01:47:25 PST 2013


The getty at .service used to specifically enable a getty at tty1.service
under getty.target when enabled.

Modern versions of systemd allow commands such as:
 systemctl enable getty at tty2.service
which automatically create the correct symlink if the
Install rule permits it.

This changes the default getty at .service to follow this
now standard convension.

Note: Packagers may need to change their initial install
rules due to this change (e.g. in rpm %post etc)
---
 units/getty at .service.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/units/getty at .service.m4 b/units/getty at .service.m4
index 083eb97..bd89a47 100644
--- a/units/getty at .service.m4
+++ b/units/getty at .service.m4
@@ -48,4 +48,4 @@ Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETA
 KillSignal=SIGHUP
 
 [Install]
-Alias=getty.target.wants/getty at tty1.service
+WantedBy=getty.target
-- 
1.8.1.2



More information about the systemd-devel mailing list