Commit aab86429 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Change shacache identifier ("key in URL").

parent 8d155e56
......@@ -33,7 +33,7 @@ json_metadata="{ \
\"comment\": \"$hash_comment\" \
}"
echo "$json_metadata" > "$metadata_file"
networkcache-upload --conf ../tls-access-to-shacache/test.cfg --key river --file "$UEFI_IMAGE_NAME" --metadata "$metadata_file"
networkcache-upload --conf ../tls-access-to-shacache/test.cfg --key ocean.nexedi.com:river:debian:"$KERNEL_VERSION" --file "$UEFI_IMAGE_NAME" --metadata "$metadata_file"
echo $(sha512sum "$UEFI_IMAGE_NAME" | cut -d' ' -f1) "$hash_comment" >> "$sha_list"
echo "$UEFI_IMAGE_NAME"
......
# This file is sourced by some other scripts in this directory
# get the root of the git repository
GIT_ROOT=$(git rev-parse --show-toplevel)
PROJECT_DIR="$GIT_ROOT"
### TO BE MODIFIED BY USERS ###
KERNEL_VERSION=5.10.0-21
......@@ -48,7 +48,7 @@ RELATIVE_EFI_IMAGE_DIR=EFI/Linux
# NETWORKCACHE DOWNLOADING METHOD
tmp_image_name=image_tmp.efi
networkcache-download --config ../tls-access-to-shacache/test.cfg --key river "timestamp<<Infinity" > "$tmp_image_name"
networkcache-download --config ../tls-access-to-shacache/test.cfg --key ocean.nexedi.com:river:debian:"$KERNEL_VERSION" "timestamp<<Infinity" > "$tmp_image_name"
image_hash=$(sha512sum "$tmp_image_name" | cut -d' ' -f1)
mv "$tmp_image_name" "$image_hash"
echo image_hash = "$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