diff --git a/distributions/LibreELEC/options b/distributions/LibreELEC/options index 67402796fc..3941b115e0 100644 --- a/distributions/LibreELEC/options +++ b/distributions/LibreELEC/options @@ -62,6 +62,9 @@ # Default system partition offset, in sectors, eg. 2048 SYSTEM_PART_START=8192 +# Size of storage partition, in MB. Must be >=32 + STORAGE_SIZE=32 + # build with swap support (yes / no) SWAP_SUPPORT="yes" diff --git a/scripts/image b/scripts/image index 436552ffa5..a0e51f50d0 100755 --- a/scripts/image +++ b/scripts/image @@ -53,6 +53,7 @@ function do_mkimage() { EXTRA_CMDLINE="${EXTRA_CMDLINE}" \ SYSTEM_SIZE="${SYSTEM_SIZE}" \ SYSTEM_PART_START="${SYSTEM_PART_START}" \ + STORAGE_SIZE="${STORAGE_SIZE:-32}" \ OVA_SIZE="${OVA_SIZE}" \ ${SCRIPTS}/mkimage } diff --git a/scripts/mkimage b/scripts/mkimage index ff836c3866..f25be46163 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -18,8 +18,6 @@ if [ -z "${SYSTEM_SIZE}" -o -z "${SYSTEM_PART_START}" ]; then exit 1 fi -STORAGE_SIZE=32 # STORAGE_SIZE must be >= 32 ! - DISK_START_PADDING=$(( (${SYSTEM_PART_START} + 2048 - 1) / 2048 )) DISK_GPT_PADDING=1 DISK_SIZE=$(( ${DISK_START_PADDING} + ${SYSTEM_SIZE} + ${STORAGE_SIZE} + ${DISK_GPT_PADDING} ))