Merge "Fix checksum parsing for Cirros and Rocky Linux"

This commit is contained in:
Zuul 2024-11-05 13:28:21 +00:00 committed by Gerrit Code Review
commit 5503696bb4
2 changed files with 11 additions and 1 deletions

View File

@ -27,7 +27,11 @@
mode: "0644"
- name: "Extract deployment image checksum"
command: awk '/{{ deploy_image_upstream_url | basename }}|^[a-z0-9]+$/{print $1}' {{ http_boot_folder }}/{{ deploy_image_filename }}-checksum.CHECKSUMS
shell:
cmd: |
set -o pipefail
grep "{{ deploy_image_upstream_url | basename }}" {{ http_boot_folder }}/{{ deploy_image_filename }}-checksum.CHECKSUMS | grep -owE "[[:xdigit:]]{32,64}"
executable: /bin/bash
register: parsed_deployment_image_checksum
failed_when: parsed_deployment_image_checksum is failed
or not parsed_deployment_image_checksum.stdout

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue with checksum verification when setting
``upstream_deploy_image_distribution`` to ``rocky`` or
``cirros``.