Browse Source

Generate checksums for DIB images

Change-Id: If8c0cdab5c443f7533873eef0d79673760bfa51b
changes/00/694800/1
Dmitry Tantsur 2 weeks ago
parent
commit
86f9d22592
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      roles/ipa-build-dib-image/tasks/main.yaml

+ 13
- 0
roles/ipa-build-dib-image/tasks/main.yaml View File

@@ -19,3 +19,16 @@
shell: |
tar -czf "{{ ipa_tar_dir }}/{{ image_name }}.tar.gz" {{ image_name }}*
mv {{ image_name }}* "{{ ipa_raw_dir }}"

- name: Generate image checksums
shell:
cmd: sha256sum "{{ image_name }}.{{ item }}" > "{{ image_name }}.{{ item }}.sha256"
chdir: "{{ ipa_raw_dir }}"
with_items:
- kernel
- initramfs

- name: Generate tarball checksum
shell:
cmd: sha256sum "{{ image_name }}.tar.gz" > "{{ image_name }}.tar.gz.sha256"
chdir: "{{ ipa_tar_dir }}"

Loading…
Cancel
Save