More musl workarounds.

This commit is contained in:
lemniskett 2020-11-02 19:36:27 +07:00
parent 328182c814
commit 30ab328780
3 changed files with 20 additions and 2 deletions

6
exp/startx-killxdg.bash Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
source /etc/archbox.conf
startx
$PRIV /usr/local/share/archbox/bin/remount_run killxdg

View File

@ -7,3 +7,7 @@ install -v -D -m 755 ./copyresolv.bash /usr/local/share/archbox/bin/copyresolv
install -v -D -m 755 ./archboxcommand.bash /usr/local/share/archbox/bin/archbox install -v -D -m 755 ./archboxcommand.bash /usr/local/share/archbox/bin/archbox
install -v -D -m 755 ./remount_run.bash /usr/local/share/archbox/bin/remount_run install -v -D -m 755 ./remount_run.bash /usr/local/share/archbox/bin/remount_run
install -v -D -m 755 ./chroot_setup.bash /usr/local/share/archbox/chroot_setup.bash install -v -D -m 755 ./chroot_setup.bash /usr/local/share/archbox/chroot_setup.bash
if [ $1 = "--exp" ]; then
install -v -D -m 755 ./exp/startx-killxdg.bash /usr/local/bin/startx-killxdg
fi

View File

@ -2,5 +2,13 @@
source /etc/archbox.conf source /etc/archbox.conf
umount -l $CHROOT/run case $1 in
mount --rbind /run $CHROOT/run killxdg)
umount -l $CHROOT/run
fuser -km $(cat /tmp/archbox_xdg_runtime_dir)
;;
*)
umount -l $CHROOT/run
mount --rbind /run $CHROOT/run
;;
esac