summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvasile10
1 files changed, 10 insertions, 0 deletions
diff --git a/vasile b/vasile
index 41b3687..3340205 100755
--- a/vasile
+++ b/vasile
@@ -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