From 45f73da6cb37d82768618549413b3ffd8bd9af72 Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Sun, 9 Oct 2022 12:30:08 +1300 Subject: [PATCH] Set root XDG_RUNTIME_DIR to /tmp/runtime-root --- overlay/etc/cont-init.d/10-setup_user.sh | 4 ++++ overlay/etc/supervisor.d/dind.ini | 2 +- overlay/etc/supervisor.d/xorg.ini | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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