fix: describe image integrity check accurately
This commit is contained in:
parent
70c38215f4
commit
5ea8149b99
|
|
@ -40,7 +40,7 @@ EOF
|
|||
image_file="${cache_dir}/raspios_lite_arm64_latest.img.xz"
|
||||
curl -fL --retry 3 "${image_url}" -o "${image_file}"
|
||||
xz -t "${image_file}"
|
||||
echo "Writing verified Raspberry Pi OS image to ${target}..."
|
||||
echo "Writing Raspberry Pi OS image (XZ integrity checked) to ${target}..."
|
||||
xz -dc "${image_file}" | ssh -i "${rpi_key}" -o BatchMode=yes "${rpi_user}@${rpi_host}" "sudo dd of=${target} bs=16M conv=fsync status=progress"
|
||||
ssh -i "${rpi_key}" -o BatchMode=yes "${rpi_user}@${rpi_host}" 'sudo partprobe /dev/mmcblk0; for i in $(seq 1 30); do test -b /dev/mmcblk0p1 && test -b /dev/mmcblk0p2 && exit 0; sleep 1; done; exit 1'
|
||||
password_hash="$(openssl passwd -6 "$(openssl rand -hex 24)")"
|
||||
|
|
|
|||
Loading…
Reference in New Issue