summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index d40ac48..54ad658 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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"
}