[molecules] Add Amazon EC2 EBS Sabayon filesystem images for amd64 and x86

This commit is contained in:
Fabio Erculiani
2012-07-24 16:13:17 +02:00
parent 9a043621e4
commit ea6af8e5ad
9 changed files with 313 additions and 9 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/bin/sh
# make sure there is no stale pid file around that prevents entropy from running
rm -f /var/run/entropy/entropy.lock
export FORCE_EAPI=2
equo update
if [ "${?}" != "0" ]; then
sleep 1200 || exit 1
equo update || exit 1
fi
# disable all mirrors but GARR
for repo_conf in /etc/entropy/repositories.conf /etc/entropy/repositories.conf.d/entropy_*; do
# skip .example files
if [[ "${repo_conf}" =~ .*\.example$ ]]; then
echo "skipping ${repo_conf}"
continue
fi
sed -n -e "/pkg.sabayon.org/p" -e "/garr.it/p" -e "/^branch/p" \
-e "/^product/p" -e "/^official-repository-id/p" -e "/^differential-update/p" \
-i "${repo_conf}"
done
# mask icedtea and icedtea-bin, waiting to have virtual/jre-1.7.0 and
# dev-java/oracle-jre-bin in Entropy
# Once there, remove this script and use "remaster_generic_inner_chroot_script.sh"
# instead.
equo mask "dev-java/icedtea-bin"
equo mask "dev-java/icedtea"