tmpfiles: refactor into separate executable

The tmpfiles.d spec has proven useful in systemd, enough so that some developers
are starting to ship tmpfiles.d configuration files with their software.
By splitting the tmpfiles functionality in finit out into a separate executable
we are providing a useful piece of software that package managers can hook into.
This commit is contained in:
Aaron Andersen committed 2025-06-02 19:27:24 -04:00
1 parent d318aa00c3
commit 1921b3f2c5
5 files changed
+49 -49

No files matched your search

+1 -2
View File
@@ -38,7 +38,6 @@
#include "finit.h"
#include "helpers.h"
#include "plugin.h"
#include "tmpfiles.h"
#include "util.h"
#include "utmp-api.h"
@@ -163,7 +162,7 @@ static void setup(void *arg)
kernel_links();
/* Create all system tmpfiles.d(5) */
tmpfilesd();
run_interactive(_PATH_TMPFILES, "Creating required directories and files");
/* Set BOOT_TIME UTMP entry */
utmp_set_boot();