diff options
Diffstat (limited to 'gentoox_build.sh')
-rwxr-xr-x | gentoox_build.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gentoox_build.sh b/gentoox_build.sh index 4667fe7..3acd8b3 100755 --- a/gentoox_build.sh +++ b/gentoox_build.sh @@ -75,11 +75,24 @@ if [[ -z $(findmnt image/proc) ]]; then mount -t proc none image/proc mount --rbind /dev image/dev mount --rbind /sys image/sys + if [[ -z $(findmnt image/var/cache/binpkgs) ]]; then + mount --bind $binpkgs image/var/cache/binpkgs/ + mount --bind $distfiles image/var/cache/distfiles/ + fi else echo "proc already mounted..." fi cd image/ +if [[ $# -ge 1 ]]; then + case $1 in + "chroot") + chroot . /bin/bash -i + exit 0 + ;; + esac +fi + if [[ ! -f 'tmp/gentoox-base-done' ]]; then cat <<HEREDOC | chroot . source /etc/profile && export PS1="(chroot) \$PS1" |