#!/bin/sh set -x set -e set -u set +f BUILD_ID="${BUILD_ID:-XXX}" FS_LABEL="ROSA_2019.1_LXQt_Min_Test_${BUILD_ID}" # TODO: make everything universal for all arches AARCH64="${AARCH64:-0}" conf="$(mktemp)" cp lxqt.ks "$conf" repobase="$(mktemp)" cp repobase.ks "$repobase" pkgs="$(mktemp)" cp lxqtpack.ks "$pkgs" if [ "$AARCH64" = 1 ] ; then # temporary hack of kernel # untill the same kernel is not build for aarch64 and x86 sed -i -e '/kernel-/d' "$pkgs" echo kernel-release >> "$pkgs" sed -i -e '/syslinux/d' "$pkgs" # drakX and urpmi stuff is not present on aarch64 sed -i -e '/diskdrake/d' "$pkgs" # temporary w/a untill new shim is published sed -i -e 's,^shim$,shim-unsigned,g' "$pkgs" # temporary untill dnfragora is build on aarch64 sed -i -e '/dnfdragora/d' "$pkgs" FS_LABEL="ROSA_2019.1_LXQt_aarch64_${BUILD_ID}" fi sed -i -e "s,repobase.ks,${repobase},g" "$conf" sed -i -e "s,lxqtpack.ks,${pkgs},g" "$conf" dnf distrosync -y dnf install -y \ coreutils \ findutils \ lsof \ sed \ tar \ util-linux \ /usr/bin/livecd-creator mkdir -p /home/vagrant/results livecd-creator --verbose \ --compression-type=xz \ --config="$conf" \ --fslabel="$FS_LABEL" mv -v *.iso /home/vagrant/results/