elemental-toolkit
elemental-toolkit copied to clipboard
COS_GRUB too small on ARM / RPi
Creating the boot partition seems to be based on the assumption "boot is always EFI".
So we see EfiSize = MinPartSize and COS_GRUB is created with this minimal size.
However, this is wrong for ARM, esp. Raspberry Pi where everything (bootloader, firmware, kernel, initrd) must be on a vfat partition. The minimal size should be 256M for this COS_GRUB partitions.
The simplest change is probably to set MinSize to 256.
A better change would not use EfiSize for ARM since not all ARM systems boot via EFI. We probably need BootSize here 🤔
Seems as if I cannot override the default size via the install: config 😩
From the general configuration docs
# default partitions
# only 'oem', 'recovery', 'state' and 'persistent' objects allowed
# size in MiB
partitions:
A better change would not use EfiSize for ARM since not all ARM systems boot via EFI. We probably need BootSize here
Yes, probably we need a way to make all this more flexible. In fact adding the efi partition into this list should be easy. I can try to quickly prepare a PR for that.
What's probably more surprising - there's no error message during install about COS_GRUB overflowing 🤔
https://github.com/rancher/elemental-toolkit/pull/2105#issuecomment-2178210754 - reopening
this is done