]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Increase size of /boot to 512 MiB
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Apr 2023 12:18:14 +0000 (12:18 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 24 Apr 2023 18:51:12 +0000 (18:51 +0000)
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 <michael.tremer@ipfire.org>
lfs/flash-images
src/installer/hw.c

index e6b25da1cdb3a70dd9eabbab75ecff8d156e3d43..464ad5edf56d55ab53eca841907ceef1ae263111 100644 (file)
@@ -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"
index 9d11d85de347f99970ab5e824966d53e3f583575..894b887d905886476a1b6cf8532d80d9d13dbcf9 100644 (file)
@@ -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) {