aboutsummaryrefslogtreecommitdiffstats
path: root/chroot/voidmusl.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-13 16:58:00 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-13 16:58:00 +0000
commit32fc608650b5aa824d87182e0491e0d9f5da7efe (patch)
tree70bb1649076c5964fc058a30abb86d4ba5a34a57 /chroot/voidmusl.sh
parentmore polishing for clipd (diff)
downloadscripts-32fc608650b5aa824d87182e0491e0d9f5da7efe.tar.gz
scripts-32fc608650b5aa824d87182e0491e0d9f5da7efe.zip
updates
Diffstat (limited to 'chroot/voidmusl.sh')
-rwxr-xr-xchroot/voidmusl.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/chroot/voidmusl.sh b/chroot/voidmusl.sh
index 3f74e05..9d98ae6 100755
--- a/chroot/voidmusl.sh
+++ b/chroot/voidmusl.sh
@@ -3,9 +3,10 @@
CHROOT_DIR=/home/devi/rootfs/voidmusl
sudo mount -t proc proc $CHROOT_DIR/proc/
sudo mount -t sysfs sys $CHROOT_DIR/sys/
-sudo mount -o bind /tmp $CHROOT_DIR/tmp/
-sudo mount -o bind /dev $CHROOT_DIR/dev/
-rmdir $CHROOT_DIR/dev/pts
-sudo mount -t devpts none $CHROOT_DIR/dev/pts -o ptmxmode=0666,newinstance
-ln -fs /dev/pts/ptmx $CHROOT_DIR/dev/ptmx
+# sudo mount -o bind /tmp $CHROOT_DIR/tmp/
+# sudo mount -o bind /dev $CHROOT_DIR/dev/
+# rmdir $CHROOT_DIR/dev/pts
+mkdir -p "$CHROOT_DIR/dev/pts"
+sudo mount -t devpts none "$CHROOT_DIR/dev/pts" -o ptmxmode=0666,newinstance
+# ln -fs /dev/pts/ptmx $CHROOT_DIR/dev/ptmx
sudo chroot $CHROOT_DIR