add stage4 to systemd stage generation

This commit is contained in:
Matthew Thode 2018-03-02 10:17:20 -06:00
parent 71795cbe91
commit aa2c1085b5
No known key found for this signature in database
GPG key ID: 64A37BEAAE19A4E8
3 changed files with 86 additions and 5 deletions

View file

@ -2,7 +2,7 @@
source /etc/catalyst/catalyst.conf
mydate=`date +%Y%m%d`
mydate=$(date +%Y%m%d)
undo_grsec() {
@ -27,11 +27,12 @@ EOF
do_stages() {
local arch=$1
for s in 1 2 3; do
for s in 1 2 3 4; do
local tgpath="${storedir}/builds/systemd/${arch}"
local target="stage${s}-${arch}-systemd-${mydate}.tar.bz2"
local tglink="stage${s}-${arch}-systemd.tar.bz2"
# only run the amd64 stage4
[[ $arch == i686 ]] && [[ $s == 4 ]] && continue
if [[ ! -f "${tgpath}/${tglink}" ]]; then
touch stage${s}-${arch}-systemd.log
echo "!!! ${tglink} at ${tgpath} doesn't exist" \