Skip to content

Commit

Permalink
Revert the ESP maximum size back to 600MiB
Browse files Browse the repository at this point in the history
The original issue was that 200MiB was too small, and we only increased the
maximum for people experimenting with UKIs. Seeing as Anaconda chooses the
maximum size in more cases than we'd like just drop the maximum size back down
to 600MiB which is easily big enough for firmware updates.

This should fix several regressions like:

 * https://bugzilla.redhat.com/show_bug.cgi?id=2212121
 * https://bugzilla.redhat.com/show_bug.cgi?id=2214342

Signed-off-by: Richard Hughes <richard@hughsie.com>
  • Loading branch information
hughsie committed Aug 29, 2023
1 parent 9ae006b commit afe5cef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/release-notes/bigger-esp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
:Summary: Make the EFI System Partition at least 500MiB in size

:Description:
The size of the EFI System Partition (ESP) created by Anaconda has changed from 200 MiB to 500 MiB.
The minimum size of the EFI System Partition (ESP) created by Anaconda has changed from 200 MiB to 500 MiB. The maximum size, which is used in most cases, remains at 600 MiB.

The reasons for this change include:
- This partition is used to deploy firmware updates. These updates need free space of twice the SPI flash size, which will grow from 64 to 128 MiB in near future and make the current partition size too small.
- The larger space enables future changes to how the bootloader is deployed on Fedora.
- The new minimum is identical with what Microsoft mandates OEMs allocate for the partition.

:Links:
- https://fedoraproject.org/wiki/Changes/BiggerESP
- https://github.com/rhinstaller/anaconda/pull/4711
- https://github.com/rhinstaller/anaconda/pull/5081
2 changes: 1 addition & 1 deletion pyanaconda/modules/storage/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _bootloader_partition(self):
mountpoint="/boot/efi",
fstype="efi",
size=Size("500MiB"),
max_size=Size("2GiB"),
max_size=Size("600MiB"),
grow=True
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_efi(self, arch):

self._check_partitions(
PartSpec(mountpoint="/boot/efi", fstype="efi", grow=True,
size=Size("500MiB"), max_size=Size("2GiB")),
size=Size("500MiB"), max_size=Size("600MiB")),
PartSpec(mountpoint="/boot", size=Size("1GiB"))
)

Expand Down Expand Up @@ -256,7 +256,7 @@ def test_aarch64_efi(self, arch):

self._check_partitions(
PartSpec(mountpoint="/boot/efi", fstype="efi", grow=True,
size=Size("500MiB"), max_size=Size("2GiB")),
size=Size("500MiB"), max_size=Size("600MiB")),
PartSpec(mountpoint="/boot", size=Size("1GiB"))
)

Expand Down Expand Up @@ -293,7 +293,7 @@ def test_arm_efi(self, arch):

self._check_partitions(
PartSpec(mountpoint="/boot/efi", fstype="efi", grow=True,
size=Size("500MiB"), max_size=Size("2GiB")),
size=Size("500MiB"), max_size=Size("600MiB")),
PartSpec(mountpoint="/boot", size=Size("1GiB"))
)

Expand Down

0 comments on commit afe5cef

Please sign in to comment.