diff --git a/overlay/etc/cont-init.d/10-setup_user.sh b/overlay/etc/cont-init.d/10-setup_user.sh index c569947..8e4a25f 100644 --- a/overlay/etc/cont-init.d/10-setup_user.sh +++ b/overlay/etc/cont-init.d/10-setup_user.sh @@ -93,4 +93,8 @@ echo "root:${USER_PASSWORD}" | chpasswd echo "Setting user password" echo "${USER}:${USER_PASSWORD}" | chpasswd +# Set root XDG_RUNTIME_DIR path +mkdir -p /tmp/runtime-root +chown root:root /tmp/runtime-root + echo "DONE" diff --git a/overlay/etc/supervisor.d/dind.ini b/overlay/etc/supervisor.d/dind.ini index 3b31c43..4ea0378 100644 --- a/overlay/etc/supervisor.d/dind.ini +++ b/overlay/etc/supervisor.d/dind.ini @@ -5,7 +5,7 @@ autostart=false autorestart=true user=root command=/usr/bin/start-dind.sh -environment=DISPLAY="%(ENV_DISPLAY)s",DISPLAY_DPI="%(ENV_DISPLAY_DPI)s",XDG_RUNTIME_DIR="/run/user/0" +environment=DISPLAY="%(ENV_DISPLAY)s",DISPLAY_DPI="%(ENV_DISPLAY_DPI)s",XDG_RUNTIME_DIR="/tmp/runtime-root" stopsignal=INT stdout_logfile=/home/%(ENV_USER)s/.cache/log/dind.log stdout_logfile_maxbytes=10MB diff --git a/overlay/etc/supervisor.d/xorg.ini b/overlay/etc/supervisor.d/xorg.ini index 7e62d69..8d4416f 100644 --- a/overlay/etc/supervisor.d/xorg.ini +++ b/overlay/etc/supervisor.d/xorg.ini @@ -5,7 +5,7 @@ autostart=false autorestart=true user=root command=/usr/bin/start-xorg.sh -environment=DISPLAY="%(ENV_DISPLAY)s",DISPLAY_DPI="%(ENV_DISPLAY_DPI)s",XDG_RUNTIME_DIR="/run/user/0" +environment=DISPLAY="%(ENV_DISPLAY)s",DISPLAY_DPI="%(ENV_DISPLAY_DPI)s",XDG_RUNTIME_DIR="/tmp/runtime-root" stopsignal=INT stdout_logfile=/home/%(ENV_USER)s/.cache/log/xorg.log stdout_logfile_maxbytes=10MB