diff options
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -421,7 +421,11 @@ __chrootshell() { [ -d "$chrootdir/union-shell" ] || sudo mkdir "$chrootdir/union-shell" sudo modprobe -q aufs sudo mount -t aufs none -o "dirs=$chrootdir/rw=rw:$chrootdir/root=ro" "$chrootdir/union-shell" + sudo mount --bind /dev "$chrootdir/union-shell/dev" + sudo mount --bind /proc "$chrootdir/union-shell/proc" + sudo mount --bind /sys "$chrootdir/union-shell/sys" sudo linux32 chroot "$chrootdir/union-shell" /bin/bash + sudo umount "$chrootdir/union-shell/"{dev,sys,proc} sudo umount "$chrootdir/union-shell" } |