sysroot: Reject attempts to pin the staged deployment

From https://github.com/projectatomic/rpm-ostree/pull/1434#discussion_r198936674

To support it we'd have to actually write it to disk, which...let's
not try that right now.

Closes: #1660
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2018-06-29 01:52:30 +00:00
1 parent bab3b2bd4c
commit 7ead3c1aa8
2 files changed
+9 -1

No files matched your search

@@ -21,6 +21,10 @@
done
test -f deployment-ref-found
rm deployment-ref-found
if ostree admin pin 0 2>err.txt; then
echo "Pinned staged deployment"; exit 1
fi
grep -qFe 'Cannot pin staged deployment' err.txt
environment:
commit: "{{ rpmostree_status['deployments'][0]['checksum'] }}"
- include_tasks: ../tasks/reboot.yml