[molecules] switch to sabayon-weekly repository for tagged ISO image releases
This commit is contained in:
parent
5e4e276a01
commit
ca64a0c27d
@ -12,10 +12,12 @@ done
|
|||||||
|
|
||||||
CUR_DATE=$(date -u +%Y%m%d)
|
CUR_DATE=$(date -u +%Y%m%d)
|
||||||
LOG_FILE="/var/log/molecule/autobuild-${CUR_DATE}-${$}.log"
|
LOG_FILE="/var/log/molecule/autobuild-${CUR_DATE}-${$}.log"
|
||||||
|
BUILDING_DAILY=1
|
||||||
|
|
||||||
# to make ISO remaster spec files working (pre_iso_script)
|
# to make ISO remaster spec files working (pre_iso_script)
|
||||||
export CUR_DATE
|
export CUR_DATE
|
||||||
export ETP_NONINTERACTIVE=1
|
export ETP_NONINTERACTIVE=1
|
||||||
|
export BUILDING_DAILY
|
||||||
|
|
||||||
echo "DO_PUSH=${DO_PUSH}"
|
echo "DO_PUSH=${DO_PUSH}"
|
||||||
echo "DRY_RUN=${DRY_RUN}"
|
echo "DRY_RUN=${DRY_RUN}"
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
PKGS_DIR="/sabayon/pkgcache"
|
PKGS_DIR="/sabayon/pkgcache"
|
||||||
CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/client/packages"
|
CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/client/packages"
|
||||||
|
|
||||||
|
# load common stuff
|
||||||
|
. /sabayon/scripts/remaster_post_common.sh
|
||||||
|
|
||||||
# make sure to not leak /proc
|
# make sure to not leak /proc
|
||||||
umount "${CHROOT_DIR}/proc" &> /dev/null
|
umount "${CHROOT_DIR}/proc" &> /dev/null
|
||||||
umount "${CHROOT_DIR}/proc" &> /dev/null
|
umount "${CHROOT_DIR}/proc" &> /dev/null
|
||||||
|
9
scripts/remaster_post_common.sh
Executable file
9
scripts/remaster_post_common.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
# switch to sabayon-weekly repository if the ISO is not a DAILY one
|
||||||
|
# BUILDING_DAILY is set in scripts/daily_iso_build.sh
|
||||||
|
if [ -z "${BUILDING_DAILY}" ]; then
|
||||||
|
# only the first occurence
|
||||||
|
local repo_conf="${CHROOT_DIR}/etc/entropy/repositories.conf"
|
||||||
|
sed -i "/^repository =/ s/sabayonlinux.org/sabayon-weekly/" "${repo_conf}" || exit 1
|
||||||
|
sed -i "/^officialrepositoryid/ s/sabayonlinux.org/sabayon-weekly/" "${repo_conf}" || exit 1
|
||||||
|
sed -i "/^official-repository-id/ s/sabayonlinux.org/sabayon-weekly/" "${repo_conf}" || exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user