[PATCHv2,05/12] installer: Disable own boot partition when using BTRFS

Message ID 20240323105629.371511-5-stefan.schantl@ipfire.org
State Staged
Commit 58a46f0bc2063dbc8f55fd46d44d7348199aefbc
Headers
Series [PATCHv2,01/12] btrfs-progs: New package |

Commit Message

Stefan Schantl March 23, 2024, 10:56 a.m. UTC
  ---
 src/installer/hw.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
  

Patch

diff --git a/src/installer/hw.c b/src/installer/hw.c
index 969c47508..11dbcd96d 100644
--- a/src/installer/hw.c
+++ b/src/installer/hw.c
@@ -563,7 +563,12 @@  static int hw_calculate_partition_table(struct hw* hw, struct hw_destination* de
 		dest->size_bootldr = 0;
 	}
 
-	dest->size_boot = hw_boot_size(dest);
+	// Disable seperate boot partition for BTRFS installations.
+	if(dest->filesystem == HW_FS_BTRFS) {
+		dest->size_boot = 0;
+	} else {
+		dest->size_boot = hw_boot_size(dest);
+	}
 
 	// Create an EFI partition when running in EFI mode
 	if (hw->efi)