debugging

This commit is contained in:
2025-04-28 13:15:39 -07:00
parent b5ccc3d937
commit f34889a405

View File

@@ -27,6 +27,12 @@ RECOVERY_PART_START=$((ROOT_PART_START + ROOT_PART_SIZE))
RECOVERY_PART_SIZE=$(((RECOVERY_SIZE + ALIGN - 1) / ALIGN * ALIGN))
IMG_SIZE=$((BOOT_PART_START + BOOT_PART_SIZE + ROOT_PART_SIZE + RECOVERY_PART_SIZE))
echo "Estimated sizes:"
echo " Boot partition: $((BOOT_PART_SIZE / 1024 / 1024))MB"
echo " Root partition: $((ROOT_PART_SIZE / 1024 / 1024))MB"
echo " Recovery partition: $((RECOVERY_PART_SIZE / 1024 / 1024))MB"
echo " Total image size: $((IMG_SIZE / 1024 / 1024))MB"
truncate -s "${IMG_SIZE}" "${IMG_FILE}"
parted --script "${IMG_FILE}" mklabel msdos