Verified Commit 1d0fe07a authored by Louis Abel's avatar Louis Abel 📺
Browse files

add checksum creator for isos (neil)

parent 41111d38
Pipeline #109 failed with stage
in 31 seconds
......@@ -59,10 +59,21 @@ for ARCH in "${ARCHES[@]}"; do
# Copy the ISO and manifests into the main isos target
cp "${SOURCE}"/*.iso "${TARGET}/"
cp "${SOURCE}"/*.iso.manifest "${TARGET}/"
# call out for checksum creation on the ISOs
pushd "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" || { echo "Failed to change directory"; exit; }
for file in isos/**/*iso*; do
arch=$(echo $file | cut -d\/ -f 2);
printf "# %s: %s bytes\n%s\n" \
"$(basename $file)" \
"$(stat -c %s $file)" \
"$(cd isos/${arch}/ && sha256sum --tag $(basename $file))" \
| sudo tee -a isos/${arch}/CHECKSUM;
popd || { echo "Failed to change directory"; exit; }
# make a kickstart directory
for ARCH in "${ARCHES[@]}"; do
for REPO in "${MODS_REPOS[@]}"; do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment