Merge pull request #2301 from cgwalters/api-require-booted

sysroot: Add _require_booted_deployment() API
This commit is contained in:
Colin Walters authored and GitHub committed 2021-03-18 08:46:35 -04:00
commit 407477f191
8 files changed
+33 -15

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ echo "ok layout"
if ${CMD_PREFIX} ostree admin deploy --stage --os=testos testos:testos/buildmaster/x86_64-runtime 2>err.txt; then
fatal "staged when not booted"
fi
assert_file_has_content_literal err.txt "Cannot stage a deployment when not currently booted into an OSTree system"
assert_file_has_content_literal err.txt "Cannot stage deployment: Not currently booted into an OSTree system"
echo "ok staging does not work when not booted"
orig_mtime=$(stat -c '%.Y' sysroot/ostree/deploy)