From 32fc608650b5aa824d87182e0491e0d9f5da7efe Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sun, 13 Feb 2022 20:28:00 +0330 Subject: updates --- chroot/debian11.sh | 1 + chroot/voidglibc.sh | 2 ++ chroot/voidmusl.sh | 11 ++++++----- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'chroot') diff --git a/chroot/debian11.sh b/chroot/debian11.sh index 158224e..3fe88da 100755 --- a/chroot/debian11.sh +++ b/chroot/debian11.sh @@ -5,4 +5,5 @@ 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 mount -t devpts none "$CHROOT_DIR/dev/pts" -o ptmxmode=0666,newinstance sudo chroot $CHROOT_DIR diff --git a/chroot/voidglibc.sh b/chroot/voidglibc.sh index 90b440b..bc2c47b 100755 --- a/chroot/voidglibc.sh +++ b/chroot/voidglibc.sh @@ -5,4 +5,6 @@ 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/ +mkdir -p "$CHROOT_DIR/dev/pts" +sudo mount -t devpts none "$CHROOT_DIR/dev/pts" -o ptmxmode=0666,newinstance sudo chroot $CHROOT_DIR 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 -- cgit v1.2.3