From 5f18f744b8995f29ad23528b83daa9edd4e75dc5 Mon Sep 17 00:00:00 2001 From: Tamara Schmitz Date: Mon, 10 Nov 2025 13:44:50 +0100 Subject: [PATCH] check ESP size in bytes not sectors Partially a necessary fix for #448 and #644. Also a continuation of PR #621 which mostly does not apply anymore four years later except for the ESP check. --- src/Views/PartitioningView.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Views/PartitioningView.vala b/src/Views/PartitioningView.vala index b3a1a9dec..cec1585ea 100644 --- a/src/Views/PartitioningView.vala +++ b/src/Views/PartitioningView.vala @@ -41,7 +41,7 @@ public class Installer.PartitioningView : AbstractInstallerView { EFI } - const uint64 REQUIRED_EFI_SECTORS = 524288; + const uint64 REQUIRED_ESP_SIZE = 256 * 1024 * 1024; construct { mounts = new Gee.ArrayList (); @@ -281,7 +281,7 @@ public class Installer.PartitioningView : AbstractInstallerView { if (mount.mount_point == "/boot/efi") { if (!mount.is_valid_boot_mount ()) { throw new GLib.IOError.FAILED (_("EFI partition has the wrong file system")); - } else if (mount.sectors < REQUIRED_EFI_SECTORS) { + } else if ((mount.sectors * mount.parent_disk.sector_size) < REQUIRED_ESP_SIZE)) { throw new GLib.IOError.FAILED (_("EFI partition is too small")); } } else if (mount.mount_point == "/" && !mount.is_valid_root_mount ()) {