From 3f5e811594bcdb25d3aa859cb0be06f6df3a03b9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 28 Aug 2015 16:05:32 +0200 Subject: core: don't generate stub unit file for transient units We store the properties for transient units in drop-ins anyway, and units don't have to have fragment files, hence don't bother with them, and don't create them. --- src/core/load-fragment.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/load-fragment.c') diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index b3bf8bdb40..721da3470e 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -3603,6 +3603,11 @@ int unit_load_fragment(Unit *u) { assert(u->load_state == UNIT_STUB); assert(u->id); + if (u->transient) { + u->load_state = UNIT_LOADED; + return 0; + } + /* First, try to find the unit under its id. We always look * for unit files in the default directories, to make it easy * to override things by placing things in /etc/systemd/system */ -- cgit v1.2.3-54-g00ecf