Re: [PATCH] mnt: add support for non-rootfs initramfs
From: Askar Safin
Date: Tue Feb 24 2026 - 21:47:26 EST
Ignat Korchagin <ignat@xxxxxxxxxxxxxx>:
> With this change we can ask the kernel (by specifying nonroot_initramfs kernel
> cmdline option) to create a "leaf" tmpfs mount for us and switch root to it
> before the initramfs handling code, so initramfs gets unpacked directly into
> the "leaf" tmpfs with rootfs being empty and no need to clean up anything.
This problem is solved by nullfs patches:
https://lore.kernel.org/all/20260112-work-immutable-rootfs-v2-0-88dd1c34a204@xxxxxxxxxx/
They are already in mainline.
--
Askar Safin