grub-devel
[Top][All Lists]
Advanced

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

Re: grub-probe seems to be having problems


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: grub-probe seems to be having problems
Date: Fri, 09 Mar 2012 01:24:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120216 Icedove/8.0

On 08.03.2012 21:15, Lennart Sorensen wrote:
/usr/sbin/grub-probe --device-map= --target=abstraction --device /dev/md0
still fails.
I've found one case when something like you describe can appear, on LVM on RAID. Here is the patch but it's unlikely to help in your case.
=== modified file 'grub-core/disk/diskfilter.c'
--- grub-core/disk/diskfilter.c    2012-03-04 00:33:09 +0000
+++ grub-core/disk/diskfilter.c    2012-03-09 00:23:08 +0000
@@ -260,6 +260,8 @@
   struct grub_diskfilter_pv *pv;
   grub_disk_pull_t pull;
   grub_disk_dev_t p;
+  struct grub_diskfilter_vg *vg;
+  struct grub_diskfilter_lv *lv2 = NULL;

   if (!lv->vg->pvs)
     return NULL;
@@ -278,6 +280,19 @@
         pv = pv->next;
     }

+  for (vg = array_list; pv && vg; vg = vg->next)
+    {
+      if (vg->lvs)
+    for (lv2 = vg->lvs; pv && lv2; lv2 = lv2->next)
+      if (!lv2->scanned && lv2->fullname && lv2->became_readable_at)
+        {
+          scan_disk (lv2->fullname);
+          lv2->scanned = 1;
+          while (pv && pv->disk)
+        pv = pv->next;
+        }
+    }
+
   for (pv = lv->vg->pvs; pv; pv = pv->next)
     {
       if (!pv->disk)



--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




reply via email to

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