bugGNU GRUB - Bugs: bug #54575, RAID5 on BTRFS borks grub.cfg...

 
 

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

bug #54575: RAID5 on BTRFS borks grub.cfg because of multiple devices from grub-probe

Submitter:  Bob McElrath <mcelrath>
Submitted:  Sun 26 Aug 2018 05:24:14 PM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Bob McElrath
Open/Closed:  Open Release:  2.02
Release:  Reproducibility:  Every Time
Planned Release:  None

Wed 05 Apr 2023 03:06:58 PM UTC, comment #2: 

Ran into the same problem (BTRFS RAID1 on LUKS), solved it by hacking around (see patchfile __fixugly_btrfs_raid_rootfs.patch). Not using any kind of patch leads to an totally unusable/b0rked grub.cfg.

Boris Digital <boris64>
Wed 05 Apr 2023 03:06:19 PM UTC, comment #1: 

Ran into the same problem (BTRFS RAID1 on LUKS), solved it by hacking around (see patchfile __fixugly_btrfs_raid_rootfs.patch). Not using any kind of patch leads to an totally unusable/b0rked grub.cfg.

(file #54563)

Boris Digital <boris64>
Sun 26 Aug 2018 05:24:14 PM UTC, original submission:  

update-grub creates an invalid grub.cfg due to grub-probe reporting multiple devices:


|mcelrath@tardis:~> grub-probe --target=device /
/dev/nvme4n1p1
/dev/nvme3n1p1
/dev/nvme2n1p1
/dev/nvme5n1p1


grub-mkconfig puts this on the kernel's command line, which breaks the command line due to the newlines in the output.

The fix is easy, just use sort and head to grab the first device.  (BTRFS doesn't care which device is used as the target of the mount, it can find the other required physical devices)

(patch attached)

Bob McElrath <mcelrath>

 

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

Attached Files
file #44869:  grub-btrfs-raid.patch added by mcelrath (822B - text/x-patch - patch )

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by boris64 (Updated the item)
  • -email is unavailable- added by mcelrath (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-05 boris64 Attached File- Added __fixugly_btrfs_raid_rootfs.patch, #54563
    2018-08-26 mcelrath Attached File- Added grub-btrfs-raid.patch, #44869

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code