diff options
author | 2009-07-24 14:04:56 +0200 | |
---|---|---|
committer | 2009-07-25 00:51:52 +0200 | |
commit | 36df0d7a538b4cae28703a6c17760c6730380ef7 (patch) | |
tree | 58a9f2efc761dcc57eb5df5a44bd6436bce8e872 | |
parent | Started creating/using binary packages (diff) | |
download | collagen-36df0d7a538b4cae28703a6c17760c6730380ef7.tar.gz collagen-36df0d7a538b4cae28703a6c17760c6730380ef7.tar.bz2 collagen-36df0d7a538b4cae28703a6c17760c6730380ef7.zip |
Added rw bind of packages portage subdirectory
-rwxr-xr-x | util/mktinderboxchroot.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util/mktinderboxchroot.sh b/util/mktinderboxchroot.sh index d28dd7d..61bf410 100755 --- a/util/mktinderboxchroot.sh +++ b/util/mktinderboxchroot.sh @@ -29,7 +29,7 @@ clean_work_chroot() { echo -n "Cleaning work chroot..." if [ -d $WORK_CHROOT ];then - for dir in $WORK_CHROOT/{"/dev","/proc","/sys","/usr/portage/distfiles","/usr/portage/","/etc/portage"};do + for dir in $WORK_CHROOT/{"/dev","/proc","/sys","/usr/portage/distfiles","/usr/portage/packages","/usr/portage/","/etc/portage"};do umount "$dir" || umount -l "$dir" done rm -rf --one-file-system "$WORK_CHROOT" @@ -148,8 +148,13 @@ mount -o bind "$PORTAGE_DIR" "$WORK_CHROOT/usr/portage" # this is bug/issue with current kernels, ro binds don't work so we have to remount mount -o remount,ro "$WORK_CHROOT/usr/portage" -mount -o bind "$PORTAGE_DIR/distfiles" "$WORK_CHROOT/usr/portage/distfiles" +mount -o bind "$PORTAGE_DIR/distfiles" "$WORK_CHROOT/usr/portage/distfiles" + +if [ ! -e "$PORTAGE_DIR/packages/" ];then + mkdir "$PORTAGE_DIR/packages/" +fi +mount -o bind "$PORTAGE_DIR/packages/" "$WORK_CHROOT/usr/portage/packages/" mount -o bind /etc/portage "$WORK_CHROOT/etc/portage" mount -o remount,ro "$WORK_CHROOT/etc/portage" |