bug-grub
[Top][All Lists]
Advanced

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

Re: error messages for BTRFS multi-partition roo


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: error messages for BTRFS multi-partition roo
Date: Sun, 20 Jan 2013 22:24:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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