diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-07-18 13:47:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-07-18 13:47:31 +0100 |
commit | 3ffe792493f2ca6f2208d9492851cf4b36946b45 (patch) | |
tree | 02ba814d610007c34cc7e6aa86f969aa14cbcef3 | |
parent | 6f915c72ff61e67f724fe9b6c6a9a67f502700f0 (diff) |
bind mount packages directory, so portage build binary packages are saved outside of our environment, ready to be reused if needed
-rwxr-xr-x | vasile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -33,6 +33,16 @@ envkogaionstart () { # mount ro squashfs chroot + add rw overlayfs layer to enable clean package building mount -t squashfs "$sqfsroot" "$rodir" mount -t overlayfs -o lowerdir="$rodir",upperdir="$rwdir" overlayfs "$overlaydir" + while : true ; do + if [[ ! -d packages ]] ; then + mkdir packages + mount -o bind packages "$overlaydir"/usr/portage/packages + break + elif [[ -d packages ]] ; then + mount -o bind packages "$overlaydir"/usr/portage/packages + break + fi + done mount -t proc proc "$overlaydir"/proc mount -t sysfs sysfs "$overlaydir"/sys mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$overlaydir"/dev |