diff options
| author | Serge Schneider <serge@raspberrypi.org> | 2018-10-30 13:07:28 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.org> | 2018-11-08 12:26:07 +0000 |
| commit | 0f7e3dec0518ac8f9cde0649b55a46ebf26a289b (patch) | |
| tree | d89e1a749ccb99b867e327ab544f7eb3bdf3aeb5 /export-noobs | |
| parent | 181218ea9d10d907c8f195d94f56272676acae2c (diff) | |
export-noobs: fix units
Diffstat (limited to 'export-noobs')
| -rwxr-xr-x | export-noobs/00-release/00-run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/export-noobs/00-release/00-run.sh b/export-noobs/00-release/00-run.sh index 5874944..85ee454 100755 --- a/export-noobs/00-release/00-run.sh +++ b/export-noobs/00-release/00-run.sh @@ -13,8 +13,8 @@ tar -v -c -C files/marketing -f "${NOOBS_DIR}/marketing.tar" . BOOT_SIZE="$(xz --robot -l "${NOOBS_DIR}/boot.tar.xz" | grep totals | cut -f 5)" ROOT_SIZE="$(xz --robot -l "${NOOBS_DIR}/root.tar.xz" | grep totals | cut -f 5)" -BOOT_SIZE="$(( BOOT_SIZE / 1000000 + 1))" -ROOT_SIZE="$(( ROOT_SIZE / 1000000 + 1))" +BOOT_SIZE="$(( BOOT_SIZE / 1024 / 1024 + 1))" +ROOT_SIZE="$(( ROOT_SIZE / 1024 / 1024 + 1))" BOOT_NOM="$(( BOOT_SIZE * 3 ))" ROOT_NOM="$(( ROOT_SIZE + 400 ))" |
