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: bob.mcelr...@gmail.com 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: |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) _______________________________________________________ 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/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub