From d54c4993699f4fa5feece43715aac3564c4dada6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 17 Jun 2014 00:15:31 +0200 Subject: 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. --- src/shared/install.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/install.h') diff --git a/src/shared/install.h b/src/shared/install.h index d057bb052b..91ce192a4f 100644 --- a/src/shared/install.h +++ b/src/shared/install.h @@ -79,6 +79,8 @@ typedef struct { char **aliases; char **wanted_by; char **required_by; + + char *default_instance; } InstallInfo; int unit_file_enable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes); -- cgit v1.2.1