test/ostree: update ostree compose request to match new requirements
Specifying a parent commit ID without a URL isn't allowed now. The upgrade commit is built without a parent. The OS upgrade should still work without it. Getting the ID of the first commit is not necessary now.
This commit is contained in:
parent
459a07d101
commit
be382ecef8
1 changed files with 1 additions and 5 deletions
|
|
@ -199,7 +199,7 @@ build_image() {
|
|||
# Start the compose.
|
||||
greenprint "🚀 Starting compose"
|
||||
if [[ $blueprint_name == upgrade ]]; then
|
||||
sudo composer-cli --json compose start-ostree --ref "$OSTREE_REF" --parent "$COMMIT_HASH" "$blueprint_name" $IMAGE_TYPE | tee "$COMPOSE_START"
|
||||
sudo composer-cli --json compose start-ostree --ref "$OSTREE_REF" "$blueprint_name" $IMAGE_TYPE | tee "$COMPOSE_START"
|
||||
else
|
||||
sudo composer-cli --json compose start "$blueprint_name" $IMAGE_TYPE | tee "$COMPOSE_START"
|
||||
fi
|
||||
|
|
@ -336,10 +336,6 @@ greenprint "Clean up osbuild-composer"
|
|||
sudo composer-cli compose delete "${COMPOSE_ID}" > /dev/null
|
||||
sudo composer-cli blueprints delete ostree > /dev/null
|
||||
|
||||
# Get ostree commit value.
|
||||
greenprint "Get ostree image commit value"
|
||||
COMMIT_HASH=$(jq -r '."ostree-commit"' < ${HTTPD_PATH}/compose.json)
|
||||
|
||||
# Ensure SELinux is happy with our new images.
|
||||
greenprint "👿 Running restorecon on image directory"
|
||||
sudo restorecon -Rv /var/lib/libvirt/images/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue