This allows code to just assume that they exist, avoiding unneeded calls to mkdir. It also ensures that the directories are created before anything that relies on them runs. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com> --- host/rootfs/Makefile | 2 ++ host/rootfs/etc/mdev/listen | 1 - host/rootfs/etc/mdev/wait | 1 - host/rootfs/etc/s6-rc/weston/run | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/host/rootfs/Makefile b/host/rootfs/Makefile index 08e42032da519b6ca73770b466d67776caa823e1..f677fe580f2e2be58113457e63468d97f49a49f6 100644 --- a/host/rootfs/Makefile +++ b/host/rootfs/Makefile @@ -90,8 +90,10 @@ DIRS = \ etc/s6-linux-init/run-image/service/xdg-desktop-portal-spectrum-host/instances \ etc/s6-linux-init/run-image/service/xdg-desktop-portal-spectrum-host/template/data \ etc/s6-linux-init/run-image/service/xdg-desktop-portal-spectrum-host/template/env \ + etc/s6-linux-init/run-image/user \ etc/s6-linux-init/run-image/vm/by-id \ etc/s6-linux-init/run-image/vm/by-name \ + etc/s6-linux-init/run-image/wait \ ext \ run \ proc \ diff --git a/host/rootfs/etc/mdev/listen b/host/rootfs/etc/mdev/listen index 8c8d86407d1f131cf28f335c8f1028d731916203..ab50ee8c5ed1139d1129bac56afa7263af150745 100755 --- a/host/rootfs/etc/mdev/listen +++ b/host/rootfs/etc/mdev/listen @@ -4,7 +4,6 @@ foreground { redirfd -w 2 /dev/null - foreground { mkdir /run/wait } mkfifo /run/wait/${1} } diff --git a/host/rootfs/etc/mdev/wait b/host/rootfs/etc/mdev/wait index 625cd46dc06618309ebaa7230f0bed49e248f3a8..6bddb303d2671ce4e5b8581cd81235d7404916e7 100755 --- a/host/rootfs/etc/mdev/wait +++ b/host/rootfs/etc/mdev/wait @@ -4,7 +4,6 @@ foreground { redirfd -w 2 /dev/null - foreground { mkdir /run/wait } mkfifo /run/wait/${1} } diff --git a/host/rootfs/etc/s6-rc/weston/run b/host/rootfs/etc/s6-rc/weston/run index 2512c011575591eefb110d6e3586517f28ba7064..7dca0dab095569c9e7d49df9d245533a7265283e 100644 --- a/host/rootfs/etc/s6-rc/weston/run +++ b/host/rootfs/etc/s6-rc/weston/run @@ -4,7 +4,6 @@ unexport WAYLAND_DISPLAY -foreground { mkdir /run/user } foreground { umask 077 mkdir /run/user/0 base-commit: f2f6d7d2a36fd37910335654b8fc69fb01934cb3 -- Sincerely, Demi Marie Obenour (she/her/hers)