From 22bde30d2fe8a8aa43541dc247aa105df73fb3aa Mon Sep 17 00:00:00 2001 From: lemniskett Date: Tue, 29 Dec 2020 16:23:37 +0700 Subject: [PATCH] Umount before mounting XDG_RUNTIME_DIR. --- remount_run.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/remount_run.bash b/remount_run.bash index a1d1c5d..3c74170 100755 --- a/remount_run.bash +++ b/remount_run.bash @@ -10,6 +10,7 @@ case $1 in ;; runtimeonly) mkdir -p $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir) + umount -Rl $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir) mount --rbind $(cat /tmp/archbox_xdg_runtime_dir) $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir) exit $? ;;