export-noobs: fix units
This commit is contained in:
parent
181218ea9d
commit
0f7e3dec05
1 changed files with 2 additions and 2 deletions
|
@ -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)"
|
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)"
|
ROOT_SIZE="$(xz --robot -l "${NOOBS_DIR}/root.tar.xz" | grep totals | cut -f 5)"
|
||||||
|
|
||||||
BOOT_SIZE="$(( BOOT_SIZE / 1000000 + 1))"
|
BOOT_SIZE="$(( BOOT_SIZE / 1024 / 1024 + 1))"
|
||||||
ROOT_SIZE="$(( ROOT_SIZE / 1000000 + 1))"
|
ROOT_SIZE="$(( ROOT_SIZE / 1024 / 1024 + 1))"
|
||||||
|
|
||||||
BOOT_NOM="$(( BOOT_SIZE * 3 ))"
|
BOOT_NOM="$(( BOOT_SIZE * 3 ))"
|
||||||
ROOT_NOM="$(( ROOT_SIZE + 400 ))"
|
ROOT_NOM="$(( ROOT_SIZE + 400 ))"
|
||||||
|
|
Loading…
Reference in a new issue