elemental-toolkit icon indicating copy to clipboard operation
elemental-toolkit copied to clipboard

COS_GRUB too small on ARM / RPi

Open kkaempf opened this issue 1 year ago • 4 comments

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 🤔

kkaempf avatar Jun 13 '24 13:06 kkaempf

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:

kkaempf avatar Jun 14 '24 08:06 kkaempf

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.

davidcassany avatar Jun 17 '24 10:06 davidcassany

What's probably more surprising - there's no error message during install about COS_GRUB overflowing 🤔

kkaempf avatar Jun 18 '24 14:06 kkaempf

https://github.com/rancher/elemental-toolkit/pull/2105#issuecomment-2178210754 - reopening

kkaempf avatar Jun 19 '24 09:06 kkaempf

this is done

kkaempf avatar Jul 11 '24 08:07 kkaempf