On 29 July 2015 6:18:43 AM AEST, Neil Bothwick <n...@digimed.co.uk> wrote: >On Wed, 29 Jul 2015 05:29:18 +1000, Bruce Schultz wrote: > >> >You may not need an initramfs to run root on btrfs as long as btrfs >is >> >compiled into your kernel (I haven't looked into it closely though). > >> >> But I think you do if your btrfs is raid 1. The kernel can't mount >> multidisk btrfs until it done a btrfs device scan in userspace, run >> from initramfs. > >According to the btrfs wiki you can pass >device=/dev/sda1,device=/dev/sdb1 on the kernel boot line.
I'd forgotten that option. Btrfs wiki also says this though: "Using device is not recommended, as it is sensitive to device names changing. You should really be using a initramfs. Most modern distributions will do this for you automatically if you install their own btrfs-progs package." https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices#Registration_in_.2Fetc.2Ffstab -- :b