Hi Christoph, On Fri, 2025-03-21 at 06:01 +0100, Christoph Hellwig wrote: > On Thu, Mar 20, 2025 at 08:46:14PM +0100, Julian Stecklina via B4 Relay wrote: > > From: Julian Stecklina <julian.stecklina@xxxxxxxxxxxxxxxxxxxxx> > > > > When the initrd doesn't fit into the RAM disk, we currently just die. > > This is unfortunate, because users have to manually configure the RAM > > disk size for no good reason. It also means that the kernel command > > line needs to be changed for different initrds, which is sometimes > > cumbersome. > > > > Attempt resizing /dev/ram to fit the RAM disk size instead. This makes > > initrd images work a bit more like initramfs images in that they just > > work. > > > > Of course, this only works, because we know that /dev/ram is a RAM > > disk and we can resize it freely. I'm not sure whether I've used the > > blockdev APIs here in a sane way. If not, please advise! > > Just use an initramfs and avoid all these problems. > Well, as Gao Xiang put it in the other mail: CPIO is somewhat inflexible. So here we are. :) That being said, I saw that the RAM disk code allocates memory on demand, so there is no downsize to set the default size to 1G and not bother with resizing it. Problem solved! Patch not needed. Julian