summaryrefslogtreecommitdiffstats
path: root/config/binary_local-hooks/05-check_initramfs-size
diff options
context:
space:
mode:
Diffstat (limited to 'config/binary_local-hooks/05-check_initramfs-size')
-rwxr-xr-xconfig/binary_local-hooks/05-check_initramfs-size4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/binary_local-hooks/05-check_initramfs-size b/config/binary_local-hooks/05-check_initramfs-size
index bc51b2d..a5466e9 100755
--- a/config/binary_local-hooks/05-check_initramfs-size
+++ b/config/binary_local-hooks/05-check_initramfs-size
@@ -17,9 +17,9 @@ Set_defaults
Echo_message "checking the size of the initramfs"
INITRAMFS=$(readlink --canonicalize binary/live/initrd.img)
-MAX_SIZE=$((32 * 1024 * 1024)) # in bytes
+MAX_SIZE=$((35 * 1024 * 1024)) # in bytes
ACTUAL_SIZE=$(stat --format='%s' "$INITRAMFS")
-if [ "$ACTUAL_SIZE" -ge "$MAX_SIZE" ]; then
+if [ "$ACTUAL_SIZE" -gt "$MAX_SIZE" ]; then
echo "E: initramfs is larger ($ACTUAL_SIZE bytes) than the maximum allowed ($MAX_SIZE)" >&2
exit 1
fi