Skip to content

Commit 7553b01

Browse files
committed
tmpfiles: add --create and --remove flags to handle creation and removal tmpfile entries
The tmpfiles.d spec contains entry types that should be acted upon in different modes of operation: create, clean, remove, and purge - so split finit logic operating on tmpfiles entries into create and remove operations, which are already implemented.
1 parent 202b878 commit 7553b01

File tree

2 files changed

+259
-167
lines changed

2 files changed

+259
-167
lines changed

plugins/bootmisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static void setup(void *arg)
162162
kernel_links();
163163

164164
/* Create all system tmpfiles.d(5) */
165-
execl(_PATH_TMPFILES, _PATH_TMPFILES, NULL);
165+
execl(_PATH_TMPFILES, _PATH_TMPFILES, "--create", NULL);
166166

167167
/* Set BOOT_TIME UTMP entry */
168168
utmp_set_boot();

0 commit comments

Comments
 (0)