URL:
<http://savannah.gnu.org/bugs/?39591>
Summary: grub-mkconfig fails on btrfs raid
Project: GNU GRUB
Submitted by: fscan
Submitted on: Sun 28 Jul 2013 15:29:53 GMT
Category: Configuration
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Release: other
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
using grub-2.00.5043-3 from arch linux testing.
grub-mkconfig line 131:
GRUB_DEVICE="`${grub_probe} --target=device /`"
on a btrfs raid GRUB_DEVICE now holds a list of devices. this fails in several
places when generating the grub.cfg.
for example the next line will fail:
GRUB_DEVICE_UUID="`${grub_probe} --device ${GRUB_DEVICE} --target=fs_uuid 2>
/dev/null`" || true
a solution would be to change this to:
GRUB_DEVICE_UUID="`${grub_probe} --target=fs_uuid / 2> /dev/null`" || true
and use GRUB_DEVICE_UUID instead of GRUB_DEVICE everywhere if set.
another quick fix would be:
GRUB_DEVICE="`${grub_probe} --target=device / | head -n 1`"
to only look at the first returned device.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39591>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub