Commit 4b20a029 authored by Ophélie Gagnard's avatar Ophélie Gagnard

generation: Upload metadata to simple URL (river).

Use a development version of libnetworkcache that support uploading
metadata to simple URL (with an identifier as parameter).
parent b723ec14
......@@ -16,7 +16,17 @@ git config --local user.name "Ophelie Gagnard"
# building initramfs
apt -y install dracut-core dracut dracut-network sbsigntool pip
pip install slapos.libnetworkcache
#pip install slapos.libnetworkcache
NC_DIR=identifier_slapos.libnetworkcache
if [ ! -d slapos.libnetworkcache ]; then
cd ..
git clone https://lab.nexedi.com/Ophelie/slapos.libnetworkcache.git "$NC_DIR"
cd "$NC_DIR"
git checkout identifier
cd ..
pip install -e "$NC_DIR"
cd generation
fi
rm -f *"$MCA_PACKAGE_NAME"*
rm -f *"$FLB_PACKAGE_NAME"*
rm -f *"$PLG_PACKAGE_NAME"*
......
......@@ -13,7 +13,7 @@ uefi_image_name="$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -r)_${MCA_NAME
sha_list=installation/images-sha512.list
hash_comment="# off + dummy ips, rd.neednet=1 LABEL=Root"
networkcache-upload --conf ../tls-access-to-shacache/test.cfg --file "$uefi_image_name" --prefix-key river-initramfs-image- "server-group=$SERVER_GROUP" "kernel-release=$(uname -r)" "mca-version=$MCA_VERSION" "flb-version=$FLB_VERSION" "plg-version=$PLG_VERSION" "upload-date=$(date)" "comment=$hash_comment"
networkcache-upload --conf ../tls-access-to-shacache/test.cfg --id river --file "$uefi_image_name" "server-group=$SERVER_GROUP" "kernel-release=$(uname -r)" "mca-version=$MCA_VERSION" "flb-version=$FLB_VERSION" "plg-version=$PLG_VERSION" "upload-date=$(date)" "comment=$hash_comment"
echo $(sha512sum "$uefi_image_name" | cut -d' ' -f1) "$hash_comment" >> "$sha_list"
git add "$sha_list"
......
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