diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-04-10 17:19:28 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-04-10 17:19:28 +0200 |
commit | c548088e6652f1be24ef01a65e429a0fa03ec8d8 (patch) | |
tree | 5824439d9661e05bc23f23c1584532582d5e413a | |
parent | 418f9d9d490819ac8b5fe24e37bf83d1d16b8521 (diff) | |
download | dotfiles-c548088e6652f1be24ef01a65e429a0fa03ec8d8.tar.gz dotfiles-c548088e6652f1be24ef01a65e429a0fa03ec8d8.tar.xz |
zshrc: fix shell{32,64} mounts
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-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" } |