diff options
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r-- | src/core/load-fragment.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |