Skip to content

Commit

Permalink
fix root margin
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2005 committed Jan 2, 2025
1 parent 3cb812c commit 995cb18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion export-image/prerun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ ALIGN="$((4 * 1024 * 1024))"
# some overhead (since actual space usage is usually rounded up to the
# filesystem block size) and gives some free space on the resulting
# image.
ROOT_MARGIN="$(echo "($ROOT_SIZE * 0.2 + 200 * 1024 * 1024) / 1" | bc)"
#ROOT_MARGIN="$(echo "($ROOT_SIZE * 0.2 + 200 * 1024 * 1024) / 1" | bc)"
ROOT_MARGIN="$(echo "($ROOT_SIZE * 0.2) / 1" | bc)"

BOOT_PART_START=$((ALIGN))
BOOT_PART_SIZE=$(((BOOT_SIZE + ALIGN - 1) / ALIGN * ALIGN))
Expand Down

0 comments on commit 995cb18

Please sign in to comment.