2018-11-25 20:20:42 +01:00
|
|
|
#!/bin/sh
|
2018-11-04 03:49:15 +01:00
|
|
|
|
|
|
|
die() {
|
|
|
|
echo $* >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2018-11-26 08:47:40 +01:00
|
|
|
set -e
|
|
|
|
|
2018-11-24 13:15:12 +01:00
|
|
|
# Get latest stage3 tag
|
2018-11-25 20:20:42 +01:00
|
|
|
STAGE3_TAG=$(wget -q -O - \
|
2018-11-24 13:15:12 +01:00
|
|
|
http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt \
|
|
|
|
| grep -v "^#" | cut -d ' ' -f 1)
|
|
|
|
|
|
|
|
# Download latest stable stage3 build
|
2018-11-25 20:42:49 +01:00
|
|
|
wget -N -O /var/lib/catalyst/store/builds/stage3-amd64-latest.tar.xz \
|
2018-11-24 13:15:12 +01:00
|
|
|
http://distfiles.gentoo.org/releases/amd64/autobuilds/${STAGE3_TAG}
|
2018-11-04 03:49:15 +01:00
|
|
|
|
|
|
|
# Download latest portage snapshot
|
2018-11-25 20:42:49 +01:00
|
|
|
wget -N -O /var/lib/catalyst/store/snapshots/portage-latest.tar.bz2 \
|
2018-11-04 03:49:15 +01:00
|
|
|
https://gentoo.osuosl.org/releases/snapshots/current/portage-latest.tar.bz2
|
|
|
|
|
|
|
|
# Update stage3 snapshot
|
2018-11-24 13:14:45 +01:00
|
|
|
catalyst -c /var/lib/catalyst/catalyst.conf -f /var/lib/catalyst/stage3.spec
|
2018-11-04 03:49:15 +01:00
|
|
|
|
|
|
|
# Update custom packages
|
2018-11-24 13:14:45 +01:00
|
|
|
catalyst -c /var/lib/catalyst/catalyst.conf -f /var/lib/catalyst/build.spec
|