10 lines
260 B
Plaintext
10 lines
260 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
mount -o bind "/dev" "$1/dev"
|
||
|
mount -o bind "/dev/pts" "$1/dev/pts"
|
||
|
mount -o bind "/sys" "$1/sys"
|
||
|
mount -o bind "/proc" "$1/proc"
|
||
|
chroot "$1" ${@:2}
|
||
|
umount -l "$1/proc"
|
||
|
umount -l "$1/sys"
|
||
|
umount -l "$1/dev/pts"
|
||
|
umount -l "$1/dev"
|