a stupid journey
kernel version 6.7 on my system results in giant initramfs images and so when i am on that kernel, they completely overfill my boot partition and therefore can't continue booting.
I thought that was weird so i did some digging, in the arch installation guide it looks like the minimum reccomended size for a boot partition has been changed so that it says 300mb now. Looking through the edit history of the page reveals that this edit was made in 2021 (well after i had followed the guide)
As a result my boot partition is only 200 megabytes, and in order to have a working system i had to chroot into my system with a live usb and install an old kernel version from the archive, in order to generate ramdisk images that are small enough to fit on my tiny boot partition.
Now. This is really not an issue for me, because im going to go and buy myself a larger ssd to solve many of my problems. (this one is only 64gb) When i install on that new ssd i will obviously give myself a much larger boot partition.
In the meantime, would anyone be able to tell me why the 6.7 initramfs images are so large? what has changed? I might also be interested in just shrinking my root partition and growing my boot partition but im not sure if i really wanna do that because if something goes wrong with me doing that its going to have to be a full reinstall anyway.
anyway that was my stupid journey. Is there anything else i could have done besides using an old kernel version? can the initramfs images be made smaller?
About this post
- Posted
- Archived
- Score
- 1 ยท 33% up
- Kind
- Text
- ID
- 198mxuf
5 comments
Issue with kernel version 6.7; likely will be resolved soon.
Seems to be related to mkinitcpio KMS hook, and caused by NVidia.
https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/issues/238
As a workaround you can try disabling the fallback image; saving about half the space. It might even be a nice thing to do in general, unless you think you may rely on the fallback image in the future. I do not think many people ever do.
thanks for the quick reply, i do remember using the kms hook for some reason (though i cant remember what for) and this laptop does not have anything nvidia on it.
This is not a main laptop, i basically just use it for autoplaying simpsons episodes, so its not as if it is a critical piece of hardware. I use grub just because i think its cool, and for some reason i just like it. It seems to me from what youve said is i will just hold off on updating the kernel until that becomes resolved. That seems to take the least amount of effort on my part. Maybe ill play around with just disabling the fallback image
look at the compression section of
mkinitcpio.confe.g.
size could be improved with finetuning options but both listed variants already take an annoying amount of time so i cba ๐
GRUB has filesystem drivers and can read from ext4 or btrfs. If you can find out how to do the change in the configuration, you can keep your "/boot" files inside your "/" filesystem and would only need space for GRUB's files inside the EFI partition.
The 'rEFInd' bootloader also has the same filesystem drivers and its configuration file looks easier to understand.