r-darwish / alma

Create Arch Linux based bootable USB drives
GNU General Public License v3.0
389 stars 31 forks source link

[Req] Add flag to control size of alma /boot partition without patching main.rs #79

Closed foundObjects closed 2 years ago

foundObjects commented 2 years ago

Is your feature request related to a problem? Please describe. Ramdisk sizes can vary greatly depending on included drivers; including the fallback ramdisk it's not uncommon for a single kernel to require >130MB or more (55-60MB/ramdisk, +55-60MB/fallback ramdisk, +~10MB/kernel) if large drivers are included. This means that the default 250MB /boot partition is often only sufficient for one, or maybe two kernels if the ramdisks are small.

Describe the solution you'd like A --boot-size= parameter to control the size of the alma boot parition at creation time without patching main.rs and recompiling would be great. I don't think increasing the default size for everyone is a good idea, 250M probably works well for most people with lean configs and any larger would be wasted space for many installs. I often test new kernels (stable-rc, mainline, etc) on a variety of hardware so a larger /boot partition is especially useful for me.

Describe alternatives you've considered I've been patching main.rs each release to increase boot partition size to 500M to accommodate multiple kernels.

Additional context n/a

Thanks for reading!