From c548088e6652f1be24ef01a65e429a0fa03ec8d8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 10 Apr 2010 17:19:28 +0200 Subject: zshrc: fix shell{32,64} mounts Signed-off-by: Florian Pritz --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.zshrc') 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" } -- cgit v1.2.3-24-g4f1b