From: Michael Tremer Date: Fri, 21 Apr 2023 12:18:14 +0000 (+0000) Subject: Increase size of /boot to 512 MiB X-Git-Tag: v2.27-core175~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffdc6fbba8732f7cdce77e09e4cae8a0b5651ec1;p=ipfire-2.x.git Increase size of /boot to 512 MiB Is XFS is being selected as file system, the minimum size requirement is 300 MiB. In order to keep it to a round number, this patch increases the size of /boot to 512 MiB. To keep all systems consistent, we will also do this on systems that are being formatted using different file systems. Fixes: #13077 - xfs cannot installed anymore because boot is to small Signed-off-by: Michael Tremer --- diff --git a/lfs/flash-images b/lfs/flash-images index e6b25da1cd..464ad5edf5 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -77,9 +77,9 @@ else PART_TYPE = L endif -# /boot: 256 MB - OFFSET +# /boot: 512 MB - OFFSET # / : 1800 MB -S_BOOT := $(shell echo $$(( 524288 - $(S_OFFSET) ))) +S_BOOT := $(shell echo $$(( 1048576 - $(S_OFFSET) ))) S_ROOT := 3773292 ifeq "$(EFI)" "1" diff --git a/src/installer/hw.c b/src/installer/hw.c index 9d11d85de3..894b887d90 100644 --- a/src/installer/hw.c +++ b/src/installer/hw.c @@ -490,7 +490,7 @@ static unsigned long long hw_swap_size(struct hw_destination* dest) { } static unsigned long long hw_boot_size(struct hw_destination* dest) { - return MB2BYTES(256); + return MB2BYTES(512); } static int hw_device_has_p_suffix(const struct hw_destination* dest) {