grub: Allow setting the boot root explicitly#2456
grub: Allow setting the boot root explicitly#2456shlevy wants to merge 1 commit intorelease-14.04from
Conversation
If /boot is a btrfs subvolume, it will be on a different device than / but not be at the root from grub's perspective. This should be fixed in a nicer way by #2449, but that won't make it into 14.04
|
cc @edolstra |
|
Uh, isn't install-grub.pl supposed to discover this automatically already? |
|
As I said in the commit message, if /boot is on a subvolume it will have a different device than / but from grub's perspective its files won't be at the root of the device. |
|
I don't understand. Isn't that exactly what this code handle? It detects that /boot is on a different device than / and adjusts the root accordingly. |
|
It sets the root to "", which is wrong. For example, suppose |
|
Setting root to "" is the reasonable thing to do in a world without subvolumes, since if Well I suppose bind-mounted |
|
I see. Still, install-grub should be able to figure this out automatically, right? I.e., see that /boot is a subvolume (or bind mount), and then take the absolute path on the parent volume. |
|
Sure, that's done by #2449 . If we're OK with backporting that to |
|
Well, we've never claimed that 14.04 supports having /boot on ZFS, so I don't think we should add ad-hoc options for that... |
|
Without this we can't use 14.04 for our systems as we've planned them, and install-grub is not practically overrideable. What exactly is the problem with adding features to the stable release if they're sure not to affect existing use cases? |
|
(setting aside that it isn't even released yet...) |
|
Eelco Dolstra notifications@github.com writes:
This has nothing to do with ZFS. In-kernel btrfs has subvolumes too :)
|
|
Well, we never said we support booting from btrfs either ;-) However, I guess we can merge this, since we can remove this option once #2449 is in. |
If /boot is a btrfs subvolume, it will be on a different device than / but not be
at the root from grub's perspective. This should be fixed in a nicer way by #2449,
but that won't make it into 14.04