Pulseaudio dirty fix on musl-based distros.

This commit is contained in:
lemniskett 2020-11-02 16:51:43 +07:00
parent ed01f1bb55
commit 3c0d4b7dfd
4 changed files with 12 additions and 1 deletions

View File

@ -32,7 +32,7 @@ If you use runit, copy archbox folder inside ```runit/``` to whatever your distr
You may want to add this if you don't want to run archbox chroot without password :
#### Sudo
```
%wheel ALL=(root) NOPASSWD: /usr/local/share/archbox/bin/archbox,/usr/local/share/archbox/bin/copyresolv
%wheel ALL=(root) NOPASSWD: /usr/local/share/archbox/bin/archbox,/usr/local/share/archbox/bin/copyresolv,/usr/local/share/archbox/bin/remount_run
```
#### Doas
```

View File

@ -27,6 +27,7 @@ OPTIONS:
-c, --create URL Creates a chroot enviroment.
-e, --enter Enters chroot enviroment.
-h, --help Displays this help message.
--remount-run Remount /run in chroot enviroment.
EOF
}
@ -83,6 +84,9 @@ case $1 in
copyresolv
$PRIV /usr/local/share/archbox/bin/archbox enter
;;
--remount-run)
$PRIV /usr/local/share/archbox/bin/remount_run
;;
-h|--help)
help_text
;;

View File

@ -5,4 +5,5 @@ install -v -D -m 755 ./archbox.bash /usr/local/bin/archbox
[[ ! -e /etc/archbox.conf ]] && install -v -D -m 755 ./archbox.conf /etc/archbox.conf
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 ./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

6
remount_run.bash Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
source /etc/archbox.conf
umount -l $CHROOT/run
mount --rbind /run $CHROOT/run