bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54575] RAID5 on BTRFS borks grub.cfg because of multiple devices f


From: Bob McElrath
Subject: [bug #54575] RAID5 on BTRFS borks grub.cfg because of multiple devices from grub-probe
Date: Sun, 26 Aug 2018 13:24:15 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?54575>

                 Summary: RAID5 on BTRFS borks grub.cfg because of multiple
devices from grub-probe
                 Project: GNU GRUB
            Submitted by: mcelrath
            Submitted on: 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
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 2.02
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

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


|address@hidden:~> 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)



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 26 Aug 2018 05:24:14 PM UTC  Name: grub-btrfs-raid.patch  Size: 822B
  By: mcelrath
patch 
<http://savannah.gnu.org/bugs/download.php?file_id=44869>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54575>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]