Add support for Finit specific tmpfiles.d/

The tmpfilesd() glob sorts files according to name, we could name our
.conf as 00finit.conf to prevent ordering issues with, e.g. dnsmasq,
but this is more elegant and allows for multi-level override.

NOTE: bootmisc depends on the pidfile plugins since the latter need
      to set up its iwatches of /run before bootmisc creates /run.
      Depending on if it's a system with /var/run or /run we need to
      drop /var/run before recreating it.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-02-28 00:49:55 +01:00
1 parent 28a90a793d
commit 11da93b759
5 files changed
+30 -10

No files matched your search

-9
View File
@@ -159,15 +159,6 @@ static void setup(void *arg)
prev = umask(0);
/*
* REQUIRED for compatibility with, e.g. _PATH_VARRUN!
* Should be set up by OS/dist, this is a fallback.
*/
if (fismnt("/run")) {
rmdir("/var/run");
ln("../run", "/var/run");
}
/* Kernel symlinks, e.g. /proc/self/fd -> /dev/fd */
kernel_links();