projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
531c650
)
repart: Don't add same dir to MakeDirectories= or Subvolumes= twice
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 14 Aug 2024 15:31:30 +0000
(17:31 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 21 Aug 2024 09:29:47 +0000
(11:29 +0200)
src/partition/repart.c
patch
|
blob
|
history
diff --git
a/src/partition/repart.c
b/src/partition/repart.c
index d05bb88db874175c560474c5f23ad8dfe9706600..967059dbeab1b783aff01ae55825ce19282e9004 100644
(file)
--- a/
src/partition/repart.c
+++ b/
src/partition/repart.c
@@
-1668,6
+1668,9
@@
static int config_parse_make_dirs(
if (r < 0)
continue;
+ if (strv_contains(*sv, d))
+ continue;
+
r = strv_consume(sv, TAKE_PTR(d));
if (r < 0)
return log_oom();