[Bug 1660882] [NEW] Can't boot from BTRFS RAID1

Launchpad Bug Tracker 1660882 at bugs.launchpad.net
Wed Feb 1 09:32:34 UTC 2017


You have been subscribed to a public bug:

Ubuntu 16.10

Steps to reproduce:

1. Install Ubuntu with a BTRFS root partition (/dev/sdb2 on my system).

2. After installation, convert to RAID 1 by adding another partition to the filesystem:
    $ btrfs device add /dev/sdb3 /
    $ btrfs filesystem balance /

3. Reboot.

4. Stuck at initramfs prompt.

To get the system to boot I have to edit /boot/grub/grub.cfg and replace all instances of this:
    rootflags=subvol=@
with this:
    rootflags=subvol=@,device=/dev/sdb2,device=/dev/sdb3

The workaround can be applied permanently by editing /etc/grub.d/10_linux and replace this:
    rootflags=subvol=${rootsubvol}
with this:
    rootflags=subvol=${rootsubvol},device=/dev/sdb2,device=/dev/sdb3

Then run update-grub

** Affects: grub (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
Can't boot from BTRFS RAID1
https://bugs.launchpad.net/bugs/1660882
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to grub in Ubuntu.



More information about the foundations-bugs mailing list