summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-04-10 17:19:28 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-04-10 17:19:28 +0200
commitc548088e6652f1be24ef01a65e429a0fa03ec8d8 (patch)
tree5824439d9661e05bc23f23c1584532582d5e413a /.zshrc
parent418f9d9d490819ac8b5fe24e37bf83d1d16b8521 (diff)
downloaddotfiles-c548088e6652f1be24ef01a65e429a0fa03ec8d8.tar.gz
dotfiles-c548088e6652f1be24ef01a65e429a0fa03ec8d8.tar.xz
zshrc: fix shell{32,64} mounts
Signed-off-by: Florian Pritz <bluewind@xssn.at>
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"
}