aboutsummaryrefslogblamecommitdiffstats
path: root/chroot/voidglibc.sh
blob: fb38e3511ddb708bc188974ea9f88f3ef391fd1a (plain) (tree)
1
2
3
4
5
6
7
8
9

         
                                       



                                          

                                                                            
                       
#!/bin/sh

CHROOT_DIR=/home/devi/chroots/voidglibc
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