newport: Maybe now we finally get the image paths correct...

This commit is contained in:
Steev Klimaszewski
2021-09-20 13:27:23 -05:00
parent 843a35d054
commit aac3c62375

View File

@@ -201,8 +201,8 @@ raw_size=$(($((${free_space}*1024))+${root_extra}))
status "Creating image file ${image_name}.img"
mkdir -p "${image_dir}"
wget http://dev.gateworks.com/newport/boot_firmware/firmware-newport.img -O "${image_dir}/${image_name}.img"
fallocate -l $(echo ${raw_size}Ki | numfmt --from=iec-i --to=si) "${image_dir}/${image_name}.img"
dd if=${image_dir}/${image_name}.img of="${image_dir}/${image_name}.img" bs=16M seek=1
fallocate -l $(echo ${raw_size}Ki | numfmt --from=iec-i --to=si) "${base_dir}/${image_name}.img"
dd if=${base_dir}/${image_name}.img of="${image_dir}/${image_name}.img" bs=16M seek=1
echo ", +" | sfdisk -N 2 "${image_dir}/${image_name}.img"
# Set the partition variables