Open BluishHumility opened 1 year ago
This feature is not even documented which is the reason refind-btrfs
is complaining (it cannot parse the file, to be exact, which is why the "disabled" option isn't helpful in this case) about the unexpected "volume" token in the context of a sub-menu.
You could try playing around with the "loader" option, instead. Perhaps it could work, although I'm somewhat skeptical (quote from the documentation):
Note that the loader is read from whatever filesystem is specified by the main stanza's volume option, provided that option precedes the submenu definition.
This feature is not even documented
I see what you mean! Now that you mention it, adding the volume
line in the submenu entry was more of a solution I stumbled onto (rather than seeing it suggested in the documentation, etc).
I had initially tried using the loader
option to point to Grub with the submenu entry, but no matter how I set it I couldn't get it to work. Although the EFI partition logically has a mount point that is relative to the Btrfs partition (through /boot/efi/EFI
), the fact that it was on a different partition seemed to be a deal breaker.
At some point, it occurred to me that often the submenu options are used as a "re-do" for the values specified in the main body of the stanza, so why not the volume
option? I'm not sure if it was intentional to allow volume
to be re-specified in a submenu entry, but it works just fine.
In any case, like I mentioned it seems very unlikely other folks will be running into this issue--and if they do, the workaround is easy as pie: if you need to run the refind-btrfs
script, just open refind.conf
and comment out the submenu entry first, then uncomment the lines after the script finishes and all is well.
Hello,
I am sure this is a bit of an edge case, but I have a boot stanza with a submenu entry that specifies a different value for "volume", which appears to be causing an issue with the
refind-btrfs
script.This is the boot stanza:
The last submenu entry (Grub) is the one causing an issue, specifically the
volume
line. This submenu entry allows booting to Grub from the rEFInd boot options menu.The "volume" line needs to be specified because the value is different than the one in the main body of the stanza--because, of course, the Grub loader is not on the Btrfs partition, it is on the EFI partition. The submenu entry itself works perfectly fine, but appears to cause an issue when running
refind-btrfs
:Line 628 is the
volume EFI
line in the Grub submenu.Interestingly, this "Garuda Gnome" stanza with the Grub boot option that is causing an issue is not even related to the installation where I am trying to run
refind-btrfs
. I am trying to set uprefind-btrfs
on a Sway installation that doesn't even have Grub installed.Disabling the stanza does not prevent
refind-btrfs
from erroring out, even when I added thedisabled
line above the problematicvolume
entry. It seems the script is still trying to make sense of this line for some reason, even when the stanza should be getting ignored.After explicitly commenting out the four lines related to the Grub submenu entry, the script succeeds.
Since there is a pretty simple workaround, I would consider this a pretty low priority for fixing--especially since, as I mentioned, this is almost certainly an edge case. Still, I figured I would mention it in case you would like to take a look.