Skip to content

Commit 4aa23fa

Browse files
committed
Set maximum image size to 2047
1 parent cc09794 commit 4aa23fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/bootstrap/rootfs/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ rootfs_make()
4444
local available_size=$(stat -c %a -f "${TARGET_PATH%/*}")
4545
let available_size="${block_size}*${available_size}+${file_size}"
4646
let DISK_SIZE="(${available_size}-${available_size}/10)/1048576"
47-
if [ "${DISK_SIZE}" -gt 4095 ]; then
48-
DISK_SIZE=4095
47+
if [ "${DISK_SIZE}" -gt 2047 ]; then
48+
DISK_SIZE=2047
4949
fi
5050
if [ "${DISK_SIZE}" -lt 512 ]; then
5151
DISK_SIZE=512

0 commit comments

Comments
 (0)