summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2020-03-23 13:05:12 +0000
committerintrigeri <intrigeri@boum.org>2020-04-12 13:43:18 +0000
commit14c871e02d493db8e450a00de256a3a674c0e50d (patch)
treeec8a43a0bc1abdab3b3daf73bccdea2977b3ef04
parent707f43f1623ddff114b23510ab341e927e125a91 (diff)
Revert "Only allow up to (but excluding) 32 MiB for initramfs"bugfix/17388-17418-17430-re-add-net-drivers-to-initramfs
This reverts commit acadc5f2bfd227541b7e699f19bbcfba22db2837.
-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