Re: [PATCH v2 6/6] RISC-V: Implement keepinitrd kernel parameter

From: Christoph Hellwig
Date: Tue Feb 12 2019 - 02:08:11 EST


On Sat, Jan 19, 2019 at 01:28:59PM +0000, Anup Patel wrote:
> This patch implements keepinitrd kernel parameter. By default,
> keepinitrd=1 but users can pass "keepinitrd=0" to free-up
> initrd memory at boot-time in free_initrd_mem() function.
>
> The keepinitrd kernel parameter is already implemented by
> unicore32, arm, and arm64 architectures and it is documented
> at: Documentation/admin-guide/kernel-parameters.txt

But why do we need it? Is there any good reason every not to free
the initrd / initramfs memory when it is not used?