diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-28 09:13:45 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-28 09:13:45 +0100 |
commit | fe7a6da8c5a95064c7e7117ca9362c84be0cb2d3 (patch) | |
tree | 44b3a6535631e67106b970d8d83ce27ca9eb39cb /src/run-generator | |
parent | shared/ask-password-api: modify keyctl break value (diff) | |
download | systemd-fe7a6da8c5a95064c7e7117ca9362c84be0cb2d3.tar.xz systemd-fe7a6da8c5a95064c7e7117ca9362c84be0cb2d3.zip |
core: use SPECIAL_DEFAULT_TARGET more
Diffstat (limited to 'src/run-generator')
-rw-r--r-- | src/run-generator/run-generator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run-generator/run-generator.c b/src/run-generator/run-generator.c index 7d6c110912..a149b9c9c2 100644 --- a/src/run-generator/run-generator.c +++ b/src/run-generator/run-generator.c @@ -9,6 +9,7 @@ #include "generator.h" #include "mkdir.h" #include "proc-cmdline.h" +#include "special.h" #include "specifier.h" #include "strv.h" @@ -116,7 +117,7 @@ static int generate(void) { return log_error_errno(r, "Failed to create unit file %s: %m", p); /* And now redirect default.target to our new target */ - p = strjoina(arg_dest, "/default.target"); + p = strjoina(arg_dest, "/" SPECIAL_DEFAULT_TARGET); if (symlink("kernel-command-line.target", p) < 0) return log_error_errno(errno, "Failed to link unit file kernel-command-line.target → %s: %m", p); |