bugGNU GRUB - Bugs: bug #65151, GRUB unable to work with bcachefs...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65151: GRUB unable to work with bcachefs multidevice / systems

Submitter:  Immolo <immolo>
Submitted:  Thu 11 Jan 2024 08:02:03 AM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Immolo
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 18 Oct 2024 09:51:16 AM UTC, comment #2: 

Hi @sesse (or anyone else who can help), thank you for the patch. I am in the same situation error: failed to get canonical path of /dev/vda3:/dev/vdb1. Even if I specify the UUID I always get the same error because I have grub 2.06-13+deb12u1 which seems to be from Oct 2023. I was hoping that your patch would be included in a newer grub for debian 12 in fact I added the backports repo, and installed grub 2.12-1~bpo12+1 I'm trying to install debian inside a chroot and I still have the same issue.

I tried to apply your patch to the latest version in the master branch of https://git.savannah.gnu.org/git/grub.git, without success, when I run make I get such an error:

mawk: ./genmoddep.awk: line 110: function asorti never defined

Can I ask for HELP here, can't believe that nobody can use bcachefs mutli-device unless they compile grub manually like this. If there is no debian package to use, I'm willing to compile this, but I'm not experienced in fixing such build errors. I tried to search online and ask for help from perplexity.ai (very good AI help for such tech issues) and still no luck.

Thanks for any help anyone can share with me to make this work, then I'm ready to share my result with the community. I really want to use bcachefs... cheers

comment #1:

> The included patch fixes multi-device booting (at least the relevant parts for GRUB; the initramfs still needs to understand root=UUID=foo). It does not make GRUB capable of having /boot on bcachefs, but it fixes so that it understands the /dev/foo:/dev/bar syntax when parsing fstab, and adds support for reading bcachefs UUIDs.
>
> (file #55636)

firepol
Sun 28 Jan 2024 08:58:51 PM UTC, comment #1: 

The included patch fixes multi-device booting (at least the relevant parts for GRUB; the initramfs still needs to understand root=UUID=foo). It does not make GRUB capable of having /boot on bcachefs, but it fixes so that it understands the /dev/foo:/dev/bar syntax when parsing fstab, and adds support for reading bcachefs UUIDs.

(file #55636)

Steinar H. Gunderson <sesse>
Thu 11 Jan 2024 08:02:03 AM UTC, original submission:  

Currently bcachefs works great as 6.7.0 as a single device / system and a vfat /boot for GRUB to load and be able to boot into the system but when you add multi device to the system things go bad.

Running grub-mkconfig - o /boot/grub/grub.cfg gives the error:

/usr/sbin/grub-probe: error: failed to get canonical path of /dev/vda3:/dev/vdb1.`

GRUB versions tested:

2.12
latest git as of 2024-01-11

I have tried with both compression on and off just rule it out

Most likely depends on https://savannah.gnu.org/bugs/?55801

Linked bug on bcachefs tracker - https://github.com/koverstreet/bcachefs/issues/630

Immolo <immolo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #55636:  bcachefs-root.diff added by sesse (13KiB - text/x-patch - preliminary patch to support multi-device booting)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by firepol (Posted a comment)
  • -email is unavailable- added by sesse (Updated the item)
  • -email is unavailable- added by immolo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-28 sesse Attached File- Added bcachefs-root.diff, #55636

    Back to the top

    Powered by Savane 3.14-573e.
    Corresponding source code