-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--vmefi
too small size of ESP partition / grub partition? / make size of ESP configurable (EFI)
#221
Comments
IIRC the 300MB are also somewhere around what Windows uses for the EFI/ESP partition? Its size depends on the actual use-case, not sure one does lots of stuff with it in a VM though, so there I would keep it smaller? But if you're creating raw images for usage on USB/DVD that might also be a matter to consider. Is there any actual disk image size change if we'd increase ESP size to 550MB? |
I think I also read all the given "ESP size recommendation" articles to decide on the "best" size for my ESP partition. I usually choose 550 MiB on physical machines as well. Things are different for VMs, especially when created via Creating a raw image to create an ISO should not require a larger ESP partition (is an ESP partition even needed for an ISO, @mika?). We should test that though and the default ESP size by grml-debootstrap should work OOTB for that task. So yes, I support @mika's statement, to keep the the partition smaller, but make the ESP size configurable is probably a good idea. JM2C. |
Additional comments:
|
Images for amd64 built with --vmefi are compatible with both, legacy BIOS and EFI booting. This was done in: Confirmed, tested. |
Yes. Unfortunately so. Changed the sizes for amd64. Related source code:
I had to increase I then compared the size of the resulting VM images:
zerofree didn't help. zerofree cannot be used on FAT32 (ESP). |
Ok :-/
Hm, I'm not sure I understand: in git master we have:
And this resulted in a 1945 MB image for you, though with:
it shrinks to 1826 MB, or am I missing something? 🤔 |
That seems confusing indeed. To make sure I didn't make a mistake, just now I re-created this experiment.
Indeed, with bigger EFI partition sizes the image shrinks. I have no explanation for this. Most important point is that without Is a change of the defaults If that is not an option, would a PR to make to configurable would be acceptable? If a PR, here are some thoughts on the implementation details. AMD64 --vmefi:
Should,
?
A) would be preferred by me because I don't think many users will play with this. Also these numbers are different for ARM64 and legacy BIOS AMD64 builds. Calculating this seems complex. How much configurability should be possible? Somebody providing their own parted script? Just up to the one doing the PR? |
I would imagine FAT doesn't touch unused blocks, so the unused space on the ESP ends up truly free. ext4 probably writes some block group data ... |
--vmefi
too small size of ESP partition / grub partition? / make size of ESP configurable (EFI)
I think changing default to VMSIZE=3G is worth a try?
I also feeel that option |
Could this lead to issues over time?
Too small? As per:
https://unix.stackexchange.com/questions/623304/size-of-efi-system-partition-esp
calamares uses
300M
.Roderick W. Smith (rEFIt boot manager developer) recommends:
That's why I would go with.
Quote https://www.rodsbooks.com/efi-bootloaders/principles.html
https://www.rodsbooks.com/gdisk/advice.html#ESP_Sizing with more detailed reasoning:
I'd like to use the grml-debootstrap created raw image as a base to create an ISO from it so it can be written to USB or DVD.
(Using grml-debootstrap, grml-live or other tools.) (#215)
Does that change the size requirements?
The text was updated successfully, but these errors were encountered: