mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
plugins: bootmisc: only create /run/lock if missing
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
3f3e70c686
commit
988ecd95e3
1 file changed
+2
-1
+2
-1
@@ -119,7 +119,8 @@ static void setup(void *arg)
|
||||
makedir("/var/lib/urandom",0755);
|
||||
if (fisdir("/run")) {
|
||||
_d("System with new /run tmpfs ...");
|
||||
makedir("/run/lock", 1777);
|
||||
if (!fisdir("/run/lock"))
|
||||
makedir("/run/lock", 1777);
|
||||
symlink("/run/lock", "/var/lock");
|
||||
symlink("/dev/shm", "/run/shm");
|
||||
|
||||
|
||||
Reference in new issue
Block a user