]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: use nullfs unconditionally as the real rootfs
authorChristian Brauner <brauner@kernel.org>
Wed, 14 Jan 2026 10:22:54 +0000 (11:22 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 14 Jan 2026 10:23:39 +0000 (11:23 +0100)
commit313c47f4fe4d07eb2969f429a66ad331fe2b3b6f
treeca0c488cde000bca75e0b8a60647d2fd8b5601f2
parent7416634fd6f18762edf60ed8524bc241eceae1f3
fs: use nullfs unconditionally as the real rootfs

Remove the "nullfs_rootfs" boot parameter and simply always use nullfs.
The mutable rootfs will be mounted on top of it. Systems that don't use
pivot_root() to pivot away from the real rootfs will have an additional
mount stick around but that shouldn't be a problem at all. If it is
we'll rever this commit.

This also simplifies the boot process and removes the need for the
traditional switch_root workarounds.

Suggested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/filesystems/ramfs-rootfs-initramfs.rst
fs/namespace.c
init/do_mounts.c
init/do_mounts.h