vmcheck/overlay: always use --consume --no-bindings

For CI purposes at least, these features are already part of FAH and the
latest CAH smoketested. Anyway, we're already hacking the latest ostree
into place for `--keep-metadata`. If it already supports the latter,
then clearly it'll support those.

Closes: #1215
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2018-01-18 18:13:39 +00:00 committed by Atomic Bot
parent 183cb952e3
commit 500dc02182

View File

@ -64,12 +64,6 @@ fi
# ✀✀✀ END hack to get --keep-metadata ✀✀✀
commit_opts=
for opt in --consume --no-bindings; do
if ostree commit --help | grep -q -e "${opt}"; then
commit_opts="${commit_opts} ${opt}"
fi
done
source_opt= # make this its own var since it contains spaces
if [ $origin != vmcheck ]; then
source_title="${origin}"
@ -85,7 +79,7 @@ else
commit_opts="${commit_opts} --keep-metadata=rpmostree.original-origin"
fi
ostree commit --parent=$commit -b vmcheck \
ostree commit --parent=$commit -b vmcheck --consume --no-bindings \
--link-checkout-speedup ${commit_opts} "${source_opt}" \
--selinux-policy=vmcheck --tree=dir=vmcheck
ostree admin deploy vmcheck