initramfs: factor out a helper to populate the initrd image

This will allow for cleaner code sharing in the caller.

Signed-off-by: Christoph Hellwig <>
Acked-by: Mike Rapoport <>
Cc: Catalin Marinas <>	[arm64]
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 <>
1 file changed