fedostree/make-trees: Add a conf file, use split log files by default

The conf file is necessary so I can run this on RHEL7, and use
--enablerepo=fedora20.
This commit is contained in:
Colin Walters 2014-01-04 08:45:39 -05:00
parent 0ba621cf12
commit a567261c06

View File

@ -3,11 +3,19 @@
set -e
set -x
DEFAULT_ENABLED_REPOS="--enablerepo=fedora --enablerepo=updates --enablerepo=walters-nss-altfiles"
DEFAULT_OS_ARGS="--os=fedora --os-version=20"
DEFAULT_PACKAGES="kernel ostree fedora-release lvm2 btrfs-progs e2fsprogs"
if test -f ./fedostree.conf; then
. ./fedostree.conf
fi
docommit() {
name=$1
shift
echo "Starting rpm-ostree run at" $(date)
rpm-ostree --repo=repo --enablerepo=fedora --enablerepo=updates --enablerepo=walters-nss-altfiles create "${name}" kernel ostree fedora-release lvm2 btrfs-progs e2fsprogs "$@"
rpm-ostree --repo=repo ${ENABLED_REPOS:-${DEFAULT_ENABLED_REPOS}} ${OS_ARGS:-${DEFAULT_OS_ARGS}} create "${name}" ${PACKAGES:-${DEFAULT_PACKAGES}} "$@" > log-${name}.txt 2>&1
echo "Completed rpm-ostree run at" $(date)
}