aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-03-02 13:35:03 +0300
committerCem Keylan <cem@ckyln.com>2020-03-02 13:35:03 +0300
commit33a56bf63d38681ed9e00a941f4767c028a8fc63 (patch)
tree6ed8bdcc2b95db75bf5fcb11fc2931f186c145d0
parentc80a2fc63c1bc448cbabcd91241b54d9805d496a (diff)
downloadinit-33a56bf63d38681ed9e00a941f4767c028a8fc63.tar.gz
create runit directories only if runit is installed
-rwxr-xr-xrc.boot4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.boot b/rc.boot
index cde7726..89c7405 100755
--- a/rc.boot
+++ b/rc.boot
@@ -17,7 +17,7 @@ out "Mounting pseudo filesystems..."; {
mnt /run -o mode=0755,nosuid,nodev -t tmpfs run
mnt /dev -o mode=0755,nosuid -t devtmpfs dev
- mkdir -pm 0755 /run/runit \
+ mkdir -pm 0755 \
/run/lvm \
/run/user \
/run/lock \
@@ -25,6 +25,8 @@ out "Mounting pseudo filesystems..."; {
/dev/pts \
/dev/shm
+ command -v runsvdir >/dev/null 2>&1 && mkdir -pm 0755 /run/runit
+
mnt /dev/pts -o mode=0620,gid=5,nosuid,noexec -nt devpts devpts
mnt /dev/shm -o mode=1777,nosuid,nodev -nt tmpfs shm
}