bug-grub
[Top][All Lists]
Advanced

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

error messages for BTRFS multi-partition roo


From: Gene Czarcinski
Subject: error messages for BTRFS multi-partition roo
Date: Sat, 12 Jan 2013 12:01:27 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

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:
---------------------------------------------------------------------------------------------
From 4770be177085a17837687d2d858acfc9696092e1 Mon Sep 17 00:00:00 2001
From: Fedora Ninjas <address@hidden>
Date: Fri, 11 Jan 2013 10:52:01 -0500
Subject: [PATCH] support for multi-device btrfs volume

The current code produces error messages if passed a device
list with multiple devices for a btrfs volume.  It worked OK
for single device btrfs volume.

This has been regression tested with root/boot on a regular
partition, single device VG logical volume,
and single device btrfs volume.
---
 util/grub-mkconfig_lib.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in
index 76133b4..8e2ff66 100644
--- a/util/grub-mkconfig_lib.in
+++ b/util/grub-mkconfig_lib.in
@@ -279,7 +279,7 @@ gettext_printf () {
 uses_abstraction () {
   device="$1"

-  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
       return 0
--
1.8.1
---------------------------------------------------------------------------------------------------

Gene




reply via email to

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