summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-24 18:43:56 +0200
committerLennart Poettering <lennart@poettering.net>2019-05-08 06:36:20 -0400
commite82e549fb2cd97966bd3a5d38dfab15e3d9cd7b6 (patch)
tree88197e8586bedd3d4f69eef35f3a9eaf555c141d /src/gpt-auto-generator
parent22e596d6d5fa80fb33ab84451db8962e2facb17a (diff)
downloadsystemd-e82e549fb2cd97966bd3a5d38dfab15e3d9cd7b6.tar.gz
tree-wide: make use of the new WRITE_STRING_FILE_MKDIR_0755 flag
Diffstat (limited to 'src/gpt-auto-generator')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 0f1e184eea..6c70054d93 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -521,13 +521,12 @@ static int add_root_rw(DissectedPartition *p) {
(void) generator_enable_remount_fs_service(arg_dest);
path = strjoina(arg_dest, "/systemd-remount-fs.service.d/50-remount-rw.conf");
- (void) mkdir_parents(path, 0755);
r = write_string_file(path,
"# Automatically generated by systemd-gpt-generator\n\n"
"[Service]\n"
"Environment=SYSTEMD_REMOUNT_ROOT_RW=1\n",
- WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_NOFOLLOW);
+ WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_NOFOLLOW|WRITE_STRING_FILE_MKDIR_0755);
if (r < 0)
return log_error_errno(r, "Failed to write drop-in file %s: %m", path);