rpm-ostree/fedostree/fedostree-make-trees
Colin Walters 05dfc0dd91 fedostree: Add both 20 and rawhide, rework tree names
Refs now look like "fedostree/20/minimal-x86_64".
2014-01-12 13:49:09 -05:00

39 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
set -x
OS_NAME=fedostree
DEFAULT_PACKAGES="kernel ostree fedora-release lvm2 btrfs-progs e2fsprogs"
if test -f ./fedostree.conf; then
. ./fedostree.conf
fi
LOGDIR=${LOGDIR:-./}
docommit() {
name=$1
shift
ref="${OS_NAME}/${release}/${name}-${arch}"
ref_unix=$(echo ${ref} | sed -e s,/,-,g)
echo "Starting rpm-ostree run at" $(date)
fedora_repos="--enablerepo=fedora-${release}"
if ! test ${release} = rawhide; then
fedora_repos="$fedora_repos --enablerepo=fedora-${release}-updates"
fi
setarch ${arch} rpm-ostree --repo=repo --enablerepo=walters-nss-altfiles ${fedora_repos} --os=fedora --os-version=${release} create ${ref} ${PACKAGES:-${DEFAULT_PACKAGES}} "$@" > ${LOGDIR}/log-${ref_unix}.txt 2>&1
echo "Completed rpm-ostree run at" $(date)
}
for release in 20 rawhide; do
for arch in x86_64; do
docommit minimal @core
docommit standard-docker-io @core @standard docker-io
docommit standard-freeipa-server @core @standard @freeipa-server
docommit standard-jbossas @core @standard @jbossas
docommit gnome-desktop-core @gnome-desktop
docommit gnome-desktop-environment @firefox @gnome-desktop @gnome-games @epiphany @libreoffice
done
done