9587ab6597
These files are not only for vmcheck, but may be used as well for setting up for development. Closes: #344 Approved by: cgwalters
17 lines
294 B
Bash
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
|