From abed72e85548b440eaea6728a9bebd88ce20d1b4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 5 Nov 2012 12:01:16 -0500 Subject: [PATCH] also mount /tmp and add a flag for adding more mounts --- .bin/custom-chroot | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.bin/custom-chroot b/.bin/custom-chroot index 7c576bb..dcaeabc 100755 --- a/.bin/custom-chroot +++ b/.bin/custom-chroot @@ -12,7 +12,7 @@ else fi unset UNSHARE -mounts="proc sys dev dev/pts usr/portage usr/portage/distfiles" +mounts="proc sys tmp dev dev/pts usr/portage usr/portage/distfiles" chroot=${0%/*} case ${chroot} in @@ -35,10 +35,12 @@ do_umount() { while [[ -n $1 ]] ; do case $1 in - -u) do_umount ;; - -*) echo "unknown option $1"; exit 1 ;; - *) break ;; + -u) do_umount ;; + -m) mounts+=" $2"; shift ;; + -*) echo "unknown option $1"; exit 1 ;; + *) break ;; esac + shift done maybe_mount() { -- 2.39.5