Bind /sys
This commit is contained in:
parent
fe17e5dea0
commit
74d2f4c1db
@ -3,6 +3,7 @@
|
||||
set -e
|
||||
mount -o bind "/dev" "$1/dev"
|
||||
mount -o bind "/dev/pts" "$1/dev/pts"
|
||||
mount -o bind "/sys" "$1/sys"
|
||||
mount -t proc none "$1/proc"
|
||||
chroot "$1" ${@:2}
|
||||
)
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
umount -l "$1/proc"
|
||||
umount -l "$1/sys"
|
||||
umount -l "$1/dev/pts"
|
||||
umount -l "$1/dev"
|
Loading…
Reference in New Issue
Block a user