mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 21:13:01 +07:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user