aboutsummaryrefslogtreecommitdiffstats
path: root/chroot/ubuntu2204.sh
blob: 0d9c125fc5ae78938a619261f842f6d45f55e6a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# sudo debootstrap jammy ./ubuntu2204 http://archive.ubuntu.com/ubuntu jammy
CHROOT_DIR=/home/devi/chroots/ubuntu2204
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 xchroot $CHROOT_DIR