diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-17 00:15:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-17 02:43:43 +0200 |
commit | d54c4993699f4fa5feece43715aac3564c4dada6 (patch) | |
tree | 8a6927a504a4bd1b5bf5dca8e1e089d1dc39791d /units | |
parent | install: when looking for a unit file for enabling, search for templates only... (diff) | |
download | systemd-d54c4993699f4fa5feece43715aac3564c4dada6.tar.xz systemd-d54c4993699f4fa5feece43715aac3564c4dada6.zip |
install: introduce new DefaultInstance= field for [Install] sections
The DefaultInstance= name is used when enabling template units when only
specifying the template name, but no instance.
Add DefaultInstance=tty1 to getty@.service, so that when the template
itself is enabled an instance for tty1 is created.
This is useful so that we "systemctl preset-all" can work properly,
because we can operate on getty@.service after finding it, and the right
instance is created.
Diffstat (limited to 'units')
-rw-r--r-- | units/getty@.service.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index aa853b8d6d..46164ab9d8 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -46,3 +46,4 @@ Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETA [Install] WantedBy=getty.target +DefaultInstance=tty1 |