rpm-ostree/vagrant/commit_and_deploy.sh

18 lines
299 B
Bash
Raw Normal View History

#!/bin/bash
set -euo pipefail
cd /ostree/repo/tmp
umount vmcheck.ro
cmd="ostree commit -b vmcheck -s '' \
--tree=dir=vmcheck \
--link-checkout-speedup"
if [ -n "${VERSION:-}" ]; then
cmd="$cmd --add-metadata-string=version=$VERSION"
fi
eval $cmd
ostree admin deploy vmcheck
sync