aboutsummaryrefslogtreecommitdiffstats
path: root/chroot
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xchroot/debian11.sh8
-rwxr-xr-xchroot/voidmusl.sh7
2 files changed, 13 insertions, 2 deletions
diff --git a/chroot/debian11.sh b/chroot/debian11.sh
new file mode 100755
index 0000000..158224e
--- /dev/null
+++ b/chroot/debian11.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+CHROOT_DIR=/home/devi/rootfs/debian11
+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/
+sudo chroot $CHROOT_DIR
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