Umount before mounting XDG_RUNTIME_DIR.

This commit is contained in:
lemniskett 2020-12-29 16:23:37 +07:00
parent c3195230c0
commit 22bde30d2f

View File

@ -10,6 +10,7 @@ case $1 in
;; ;;
runtimeonly) runtimeonly)
mkdir -p $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir) 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) mount --rbind $(cat /tmp/archbox_xdg_runtime_dir) $CHROOT/$(cat /tmp/archbox_xdg_runtime_dir)
exit $? exit $?
;; ;;