On 12.01.2013 18:01, Gene Czarcinski wrote: > This occurred on Fedora 18 and here is the bugzilla report: > https://bugzilla.redhat.com/show_bug.cgi?id=890955 > > The problem is that grub2-probe is issuing an error message when it is > testing a multi-device btrfs volume to see if it is LVM ... it is not. > > Here is the patch to fix it:
It wouldn't handle spaces correctly. Please try: === modified file 'util/grub-mkconfig_lib.in' --- util/grub-mkconfig_lib.in 2012-12-28 06:57:17 +0000 +++ util/grub-mkconfig_lib.in 2013-01-20 21:23:27 +0000 @@ -274,13 +274,17 @@ uses_abstraction () { device="$1" + saved_ifs="$IFS" + IFS=$'\n' - abstraction="`"${grub_probe}" --device "${device}" --target=abstraction`" + abstraction="`"${grub_probe}" --device ${device} --target=abstraction`" for module in ${abstraction}; do if test "x${module}" = "x$2"; then + IFS="$saved_ifs" return 0 fi done + IFS="$saved_ifs" return 1 } -- Regards Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub