Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: docs: discourage root btrfs usage without an initramfs
@ 2026-09-12  9:25 Qu Wenruo
  2026-09-14 17:18 ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: Qu Wenruo @ 2026-09-12  9:25 UTC (permalink / raw)
  To: linux-btrfs

For multi-device btrfs, device scanning is required before mounting, and
without an initramfs it's impossible to mount a multi-device btrfs.

Even if the rootfs is a single-device btrfs, there is nothing preventing
the end user to add a device to that btrfs, and fail the next boot.

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 Documentation/mkfs.btrfs.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/mkfs.btrfs.rst b/Documentation/mkfs.btrfs.rst
index 0d3d6051b0e7..0bc7b7ac3808 100644
--- a/Documentation/mkfs.btrfs.rst
+++ b/Documentation/mkfs.btrfs.rst
@@ -346,6 +346,10 @@ devices to scan at the time of mount.
         before all block devices are discovered. The waiting is usually done on the
         initramfs/initrd systems.
 
+        Thus using btrfs as a rootfs without an initramfs is not recommended.
+        Adding a new device to the rootfs can easily cause the next boot to fail, as
+        there is no way to register all devices prior to mounting.
+
 .. warning::
         RAID5/6 has known problems and should not be used in production.
 
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-14 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-12  9:25 [PATCH] btrfs-progs: docs: discourage root btrfs usage without an initramfs Qu Wenruo
2026-09-14 17:18 ` David Sterba
2026-09-14 21:28   ` Qu Wenruo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox