Commit 322c8834 authored by Ophélie Gagnard's avatar Ophélie Gagnard

installation: Update slapos.libnetworkcache installation and download syntax.

parent 9e0f039f
...@@ -7,19 +7,19 @@ GIT_ROOT=`git rev-parse --show-toplevel` ...@@ -7,19 +7,19 @@ GIT_ROOT=`git rev-parse --show-toplevel`
cd "$GIT_ROOT"/installation cd "$GIT_ROOT"/installation
# useful tools # useful tools
apt -y install sudo wget tree apt -y install sudo wget tree pip
git config --global user.email "ophelie.gagnard@nexedi.com" git config --global user.email "ophelie.gagnard@nexedi.com"
git config --global user.name "Ophelie Gagnard" git config --global user.name "Ophelie Gagnard"
#pip install slapos.libnetworkcache #pip install slapos.libnetworkcache
NC_DIR=strategies_slapos.libnetworkcache # NC for NetworkCache NC_BRANCH=cmdline-selection
NC_DIR="${NC_BRANCH}"_slapos.libnetworkcache # NC for NetworkCache
cd .. cd ..
if [ ! -d "$NC_DIR" ]; then if [ ! -d "$NC_DIR" ]; then
git clone https://lab.nexedi.com/Ophelie/slapos.libnetworkcache.git "$NC_DIR" git clone https://lab.nexedi.com/Ophelie/slapos.libnetworkcache.git "$NC_DIR"
cd "$NC_DIR" cd "$NC_DIR"
git checkout strategies git checkout "$NC_BRANCH"
cd .. cd ..
pip install -e "$NC_DIR" pip install -e "$NC_DIR"
fi fi
pip install packaging
cd installation cd installation
...@@ -48,7 +48,7 @@ RELATIVE_EFI_IMAGE_DIR=/EFI/Linux ...@@ -48,7 +48,7 @@ RELATIVE_EFI_IMAGE_DIR=/EFI/Linux
# NETWORKCACHE DOWNLOADING METHOD # NETWORKCACHE DOWNLOADING METHOD
tmp_image_name=image_tmp.efi tmp_image_name=image_tmp.efi
networkcache-download --config ../tls-access-to-shacache/test.cfg --id river -s most_recent > "$tmp_image_name" networkcache-download --config ../tls-access-to-shacache/test.cfg --id river timestamp:max > "$tmp_image_name"
image_hash=$(sha512sum "$tmp_image_name" | cut -d' ' -f1) image_hash=$(sha512sum "$tmp_image_name" | cut -d' ' -f1)
mv "$tmp_image_name" "$image_hash" mv "$tmp_image_name" "$image_hash"
# WGET DOWNLOADING METHOD # WGET DOWNLOADING METHOD
......
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