mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-21 22:51:05 +01:00
Compare commits
2 Commits
cd7b58d4fe
...
42e9b6bd7f
Author | SHA1 | Date | |
---|---|---|---|
42e9b6bd7f | |||
2d8a7fb3cb |
@ -93,7 +93,7 @@ set_device_path(){
|
||||
OPTIMAL_BLOCKSIZE="4K"
|
||||
fi
|
||||
info "Optimal blocksize set to: $OPTIMAL_BLOCKSIZE" || error
|
||||
|
||||
}
|
||||
|
||||
overwritte_device_with_zeros(){
|
||||
question "Should $device_path be overwritten with zeros before copying?(y/N)" && read -r copy_zeros_to_device
|
||||
|
@ -87,7 +87,7 @@ case "$operation_system" in
|
||||
image_name="manjaro-architect-20.0-200426-linux56.iso"
|
||||
;;
|
||||
"gnome")
|
||||
question "Which release(e.g.:20,21) should be used:" && read -r release
|
||||
question "Which release(e.g.:20,21,raspberrypi) should be used:" && read -r release
|
||||
case "$release" in
|
||||
"20")
|
||||
image_checksum="2df3697908483550d4a473815b08c1377e6b6892"
|
||||
@ -95,9 +95,17 @@ case "$operation_system" in
|
||||
image_name="manjaro-gnome-20.0-200426-linux56.iso"
|
||||
;;
|
||||
"21")
|
||||
image_checksum="78b8fa6a5222bc10a2e767485e76f82f3c7b2b59f4a70501b4a9fb846c5ad94987cf8b8ed630a701a8a3386debc0a39fc7363a743df8f13f41d3d8324d74e227"
|
||||
base_download_url="https://download.manjaro.org/gnome/21.3.7/"
|
||||
image_name="manjaro-gnome-21.3.7-220816-linux515.iso"
|
||||
;;
|
||||
"22")
|
||||
base_download_url="https://download.manjaro.org/gnome/22.1.3/"
|
||||
image_name="manjaro-gnome-22.1.3-230529-linux61.iso"
|
||||
;;
|
||||
"raspberrypi")
|
||||
base_download_url="https://github.com/manjaro-arm/rpi4-images/releases/download/23.02/"
|
||||
image_name="Manjaro-ARM-gnome-rpi4-23.02.img.xz"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
@ -164,17 +172,18 @@ case "$operation_system" in
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$image_checksum" ]
|
||||
then
|
||||
sha1_download_url="$download_url.sha1"
|
||||
info "Image Chechsum is not defined. Try to download image signature from $sha1_download_url."
|
||||
if wget -q --method=HEAD "$sha1_download_url";
|
||||
then
|
||||
image_checksum="$(wget $sha1_download_url -q -O - | cut -d ' ' -f1 )"
|
||||
info "Defined image_checksum as $image_checksum"
|
||||
else
|
||||
warning "No checksum found under $sha1_download_url."
|
||||
fi
|
||||
if [ -z "$image_checksum" ]; then
|
||||
for ext in sha1 sha512; do
|
||||
sha_download_url="$download_url.$ext"
|
||||
info "Image Checksum is not defined. Try to download image signature from $sha_download_url."
|
||||
if wget -q --method=HEAD "$sha_download_url"; then
|
||||
image_checksum="$(wget $sha_download_url -q -O - | cut -d ' ' -f1)"
|
||||
info "Defined image_checksum as $image_checksum"
|
||||
break
|
||||
else
|
||||
warning "No checksum found under $sha_download_url."
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
info "Verifying image..."
|
||||
|
Loading…
Reference in New Issue
Block a user