summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/shared/generator.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c
index 86e9356dd1..18fc469098 100644
--- a/src/shared/generator.c
+++ b/src/shared/generator.c
@@ -209,8 +209,10 @@ int generator_write_timeouts(
return write_drop_in_format(dir, unit, 50, "device-timeout",
"# Automatically generated by %s\n\n"
- "[Unit]\nJobRunningTimeoutSec=%s",
- program_invocation_short_name, timeout);
+ "[Unit]\n"
+ "JobRunningTimeoutSec=%s",
+ program_invocation_short_name,
+ timeout);
}
int generator_write_device_deps(
@@ -262,6 +264,10 @@ int generator_write_initrd_root_device_deps(const char *dir, const char *what) {
return write_drop_in_format(dir, SPECIAL_INITRD_ROOT_DEVICE_TARGET, 50, "root-device",
"# Automatically generated by %s\n\n"
- "[Unit]\nRequires=%s\nAfter=%s",
- program_invocation_short_name, unit, unit);
+ "[Unit]\n"
+ "Requires=%s\n"
+ "After=%s",
+ program_invocation_short_name,
+ unit,
+ unit);
}