From c8621e24d2df2bb2f5c9e27443f01d5dd20be50c Mon Sep 17 00:00:00 2001 From: Kyle K Date: Wed, 5 Feb 2020 05:42:01 -0600 Subject: work on scripting KDE rice --- gentoox_build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gentoox_build.sh') 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 <