talos icon indicating copy to clipboard operation
talos copied to clipboard

fix: efi fat32 compatibility with nvme 4KBn sector size

Open aarnaud opened this issue 1 year ago • 5 comments

Pull Request

What? (description)

Fix the compatibility For Advanced Format 4K Native drives (4-KB-per-sector) drives, the minimum size is 260 MB, due to a limitation of the FAT32 file format.

Why? (reasoning)

FAT32 spec :

  • https://github.com/dosfstools/dosfstools/blob/master/src/mkfs.fat.c#L125
  • https://www.cs.fsu.edu/~cop4610t/assignments/project3/spec/fatspec.pdf
  • https://superuser.com/questions/1702331/what-is-the-minimum-size-of-a-4k-native-partition-when-formatted-with-fat32
  • https://bbs.archlinux.org/viewtopic.php?id=168014

Acceptance

Please use the following checklist:

  • [ ] you linked an issue (if applicable)
  • [ ] you included tests (if applicable)
  • [ ] you ran conformance (make conformance)
  • [X] you formatted your code (make fmt)
  • [ ] you linted your code (make lint)
  • [ ] you generated documentation (make docs)
  • [ ] you ran unit-tests (make unit-tests)

See make help for a description of the available targets.

aarnaud avatar Jan 16 '24 22:01 aarnaud

Thanks for your PR, it does make a lot of sense. We need to consider on our side the effects of changing size of the partition for existing installs (when upgrading). It makes perfect sense for upgrades of course.

smira avatar Jan 17 '24 14:01 smira

Thanks for your PR, it does make a lot of sense. We need to consider on our side the effects of changing size of the partition for existing installs (when upgrading). It makes perfect sense for upgrades of course.

while we move to sd-boot for 1.7 we can maybe make it bigger to accomodate UKI too? :thinking:

frezbo avatar Jan 21 '24 06:01 frezbo

If we move to sd-boot, we have 1 GiB EFI partition there. This change is about GRUB-style partitioning scheme.

smira avatar Jan 22 '24 10:01 smira

This PR is stale because it has been open 45 days with no activity.

github-actions[bot] avatar Jun 05 '24 01:06 github-actions[bot]

I don't know if it's still require with 1.7 and sd-boot ?

aarnaud avatar Jun 05 '24 02:06 aarnaud