[PATCH] Btrfs /boot partition doesn't boot.

Bug #776850 reported by alexeagar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: grub2

When I install with a btrfs /boot partition and an encrypted btrfs / partition, the system doesn't boot correctly.

The fix is to change one line of /etc/grub.d/10_linux. GRUB_DEVICE should be GRUB_DEVICE_BOOT at the top line of the section which mentions rootsubvol.

Run 'sudo update-grub2' after making the above change in order to fix /boot/grub/grub.cfg so that you will no longer have to add rootflags=subvol=@ to your boot options within the Grub menu.

More Details: http://ubuntuforums.org/showthread.php?t=1746939

alexeagar (alexeagar)
description: updated
description: updated
Revision history for this message
Colin Watson (cjwatson) wrote :

No, this is incorrect, sorry. That code really does mean to be querying the properties of /, not /boot. While the change you suggest would happen to fix things in your case because your unencrypted /boot is also btrfs, it would fail in the case of ext2 /boot and an encrypted btrfs / - the value of rootflags needs to depend on the filesystem on /, not the filesystem on /boot.

I know you commented on bug 757631, but this can only be solved by fixing that bug, not in the way you suggest here.

Revision history for this message
alexeagar (alexeagar) wrote :

I posted a link to this page a few places, so I just wanted to link to my improved workaround.

Improved Workaround.
https://bugs.launchpad.net/ubuntu-release-notes/+bug/757631/comments/8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.