Increase size of /boot to 512 MiB

Message ID 20230421121814.2325507-1-michael.tremer@ipfire.org
State Accepted
Commit ffdc6fbba8732f7cdce77e09e4cae8a0b5651ec1
Headers
Series Increase size of /boot to 512 MiB |

Commit Message

Michael Tremer April 21, 2023, 12:18 p.m. UTC
  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   | 4 ++--
 src/installer/hw.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
  

Patch

diff --git a/lfs/flash-images b/lfs/flash-images
index e6b25da1c..464ad5edf 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 9d11d85de..894b887d9 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) {