Commit 34f022d0 authored by Ophélie Gagnard's avatar Ophélie Gagnard

installation: Download last image with libnetworkcache.

parent bc20fd10
...@@ -46,9 +46,15 @@ default_bootnum=100 ...@@ -46,9 +46,15 @@ default_bootnum=100
# needed by efibootmgr # needed by efibootmgr
RELATIVE_EFI_IMAGE_DIR=/EFI/Linux RELATIVE_EFI_IMAGE_DIR=/EFI/Linux
if [ ! -f "$image_hash" ]; then # NETWORKCACHE DOWNLOADING METHOD
wget "$shacache_url/$image_hash" tmp_image_name=image_tmp.efi
fi networkcache-download --config ../tls-access-to-shacache/test.cfg --id river -s most_recent > "$tmp_image_name"
image_hash=$(sha512sum "$tmp_image_name" | cut -d' ' -f1)
mv "$tmp_image_name" "$image_hash"
# WGET DOWNLOADING METHOD
#if [ ! -f "$image_hash" ]; then
# wget "$shacache_url/$image_hash"
#fi
mkdir -p /boot/efi/"$RELATIVE_EFI_IMAGE_DIR" mkdir -p /boot/efi/"$RELATIVE_EFI_IMAGE_DIR"
cp "$image_hash" /boot/efi/"$RELATIVE_EFI_IMAGE_DIR" cp "$image_hash" /boot/efi/"$RELATIVE_EFI_IMAGE_DIR"
......
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