]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Disable own boot partition when using BTRFS
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 23 Mar 2024 10:56:22 +0000 (11:56 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 26 Mar 2024 07:33:58 +0000 (07:33 +0000)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/installer/hw.c

index 969c47508efc56833946ffcb49ae499188df8e86..11dbcd96d73d96062d3eb1dafcce7303d7985ab7 100644 (file)
@@ -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)