Commit 928c6686 authored by Ophélie Gagnard's avatar Ophélie Gagnard

installation: Add debug information.

parent 9d7198b9
......@@ -44,13 +44,14 @@ EFI_PARTITION_MOUNT_POINT=$(get_partition_path "$efi_partition_type")
ROOT_PARTITION_ID=$(get_partition_id "$root_partition_type")
default_bootnum=100
# needed by efibootmgr
RELATIVE_EFI_IMAGE_DIR=/EFI/Linux
RELATIVE_EFI_IMAGE_DIR=EFI/Linux
# NETWORKCACHE DOWNLOADING METHOD
tmp_image_name=image_tmp.efi
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)
mv "$tmp_image_name" "$image_hash"
echo image_hash = "$image_hash"
# WGET DOWNLOADING METHOD
#if [ ! -f "$image_hash" ]; then
# wget "$shacache_url/$image_hash"
......@@ -63,3 +64,6 @@ efibootmgr -b "$default_bootnum" -B || true
# Set the image as a boot option
efibootmgr -b "$default_bootnum" --create --disk "$EFI_PARTITION_MOUNT_POINT" --label "test_deploy" --loader "${RELATIVE_EFI_IMAGE_DIR}/$image_hash"
echo image path =
echo "${RELATIVE_EFI_IMAGE_DIR}/$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