You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

64 lines
1.5 KiB
Bash

#!/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
4 years ago
FS_LABEL="ROSA_2019.1_LXQt_aarch64_${BUILD_ID}"
# temp, better make one universal list
cp repobase-aarch64.ks "$repobase"
# temporary hack of kernel
# untill the same kernel is not build for aarch64 and x86
sed -i -e '/kernel-/d' "$pkgs"
echo kernel-release-server >> "$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"
# drop plymouth
sed -i -e '/plymouth/d' "$pkgs"
sed -i -e '/Rosa-theme-EE/d' "$pkgs"
# XXX crap! Provides are not detected...
sed -i -e 's,^distro-release$,distro-release-rosa2019.1,g' "$pkgs"
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/