From 96982d119a4aff8516fbf248f66021c611a85356 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 8 Jan 2021 19:23:47 +0000 Subject: [PATCH] Add 1.2 multiplier to nominal root partition size --- export-noobs/00-release/00-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export-noobs/00-release/00-run.sh b/export-noobs/00-release/00-run.sh index c2a4a51..488098a 100755 --- a/export-noobs/00-release/00-run.sh +++ b/export-noobs/00-release/00-run.sh @@ -20,7 +20,7 @@ BOOT_SIZE="$(( BOOT_SIZE / 1024 / 1024 + 1))" ROOT_SIZE="$(( ROOT_SIZE / 1024 / 1024 + 1))" BOOT_NOM="256" -ROOT_NOM="$(( ROOT_SIZE + 400 ))" +ROOT_NOM="$(echo "$ROOT_SIZE" | awk '{printf "%.0f", (($1 + 400) * 1.2) + 0.5 }')" mv "${NOOBS_DIR}/OS.png" "${NOOBS_DIR}/${NOOBS_NAME// /_}.png"