rpm-ostree/vagrant/commit_and_deploy.sh
Jonathan Lebon 9587ab6597 vagrant: move helper files to vagrant/
These files are not only for vmcheck, but may be used as well for
setting up for development.

Closes: #344
Approved by: cgwalters
2016-06-23 00:05:09 +00:00

17 lines
294 B
Bash

#!/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