aboutsummaryrefslogtreecommitdiffstats
path: root/chroot/voidmusl.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-12-29 16:55:20 +0000
committerterminaldweller <thabogre@gmail.com>2021-12-29 16:55:20 +0000
commitf2ef99d0ac3cde7469da9a0b35a66043d13acc4a (patch)
tree7349c560d39c0489aac59f8d3dfe05aa8a65c9e3 /chroot/voidmusl.sh
parentmore updates. some chroot stuff (diff)
downloadscripts-f2ef99d0ac3cde7469da9a0b35a66043d13acc4a.tar.gz
scripts-f2ef99d0ac3cde7469da9a0b35a66043d13acc4a.zip
updates
Diffstat (limited to 'chroot/voidmusl.sh')
-rwxr-xr-xchroot/voidmusl.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/chroot/voidmusl.sh b/chroot/voidmusl.sh
index 21152d7..3f74e05 100755
--- a/chroot/voidmusl.sh
+++ b/chroot/voidmusl.sh
@@ -2,7 +2,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 -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 chroot $CHROOT_DIR