Commit 36ad2f88 authored by Ophélie Gagnard's avatar Ophélie Gagnard

generation: Create an image name not host-specific.

parent a8aa5639
......@@ -126,7 +126,7 @@ CERT_DIR=uefi-keys/public-certificates
KEYS_DIR=uefi-keys/private-keys
PUBLIC_CERT_DIR=${PROJECT_DIR}/${CERT_DIR}/${SERVER_GROUP}
PRIVATE_KEYS_DIR=${PROJECT_DIR}/${KEYS_DIR}/${SERVER_GROUP}
uefi_image_name="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -r)_${MCA_NAME_AND_VERSION}_${FLB_NAME_AND_VERSION}_${SERVER_GROUP}_${TARGET_HOSTNAME}".efi
uefi_image_name="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -r)_${MCA_NAME_AND_VERSION}_${FLB_NAME_AND_VERSION}_${SERVER_GROUP}".efi
dracut_output_file=dracut-output
# Install the module
......
......@@ -9,12 +9,12 @@ cd $GIT_ROOT
# define useful variables
source generation/00env.sh
uefi_image_name="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -r)_${MCA_NAME_AND_VERSION}_${FLB_NAME_AND_VERSION}_${SERVER_GROUP}_${TARGET_HOSTNAME}".efi
uefi_image_name="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -r)_${MCA_NAME_AND_VERSION}_${FLB_NAME_AND_VERSION}_${SERVER_GROUP}".efi
networkcache-upload --conf ../tls-access-to-shacache/test.cfg --file "$uefi_image_name"
sha_list=installation/images-sha512.list
hash_comment="# off + dummy ips, rd.neednet=1 rd.break=mount"
hash_comment="# off + dummy ips, rd.neednet=1 LABEL=Root"
echo $(sha512sum "$uefi_image_name" | cut -d' ' -f1) "$hash_comment" >> "$sha_list"
git add "$sha_list"
git commit -m "installation: Add an image hash."
......
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