[scripts] arm: execute profiles update outside qemu-user chroot

This commit is contained in:
Fabio Erculiani
2013-07-13 11:02:22 +02:00
parent 494c454ae2
commit eda027acee
4 changed files with 37 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
/usr/sbin/env-update
. /etc/profile
# Execute this here due to technical problems with qemu-user
# Update /usr/portage/profiles
# This is actually not strictly needed but several
# gentoo tools expect to find valid /etc/make.profile symlink
# This part is best effort, if it will be able to complete
# correctly, fine.
# For a list of mirrors, see: http://www.gentoo.org/main/en/mirrors-rsync.xml
RSYNC_URI="rsync://rsync.at.gentoo.org/gentoo-portage/profiles"
PROFILES_DIR="${CHROOT_DIR}/usr/portage/profiles"
for x in $(seq 5); do
rsync -av -H -A -X --delete-during "${RSYNC_URI}/" "${PROFILES_DIR}/" && break
sleep 1m || exit 1
done
exit 0