initramfs: move the legacy keepinitrd parameter to core code

No need to handle the freeing disable in arch code when we already have a
core hook (and a different name for the option) for it.

Signed-off-by: Christoph Hellwig <>
Acked-by: Catalin Marinas <>	[arm64]
Acked-by: Mike Rapoport <>
Cc: Geert Uytterhoeven <>	[m68k]
Cc: Steven Price <>
Cc: Alexander Viro <>
Cc: Guan Xuetao <>
Cc: Russell King <>
Cc: Will Deacon <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
8 files changed