On Wed, Jul 23, 2008 at 12:42:10AM +0200, Moritz Naumann wrote:
> Package: grub
> Version: 0.97-41
> Severity: important
> 
> I'm unable to install any linux (kernel) security updates or any other
> kernels at all. Whenever I try to installa new kernel image (and thus
> run update-grub) I get this:
> 
> > Running postinst hook script /usr/sbin/update-grub.
> > Searching for GRUB installation directory ... found: /boot/grub
> > grub-probe: error: Cannot find a GRUB drive for /dev/dm-5.  Check your
> > device.map.

Does this patch (for grub-common) fix the problem?

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)
Index: util/getroot.c
===================================================================
--- util/getroot.c	(revision 1724)
+++ util/getroot.c	(working copy)
@@ -229,6 +229,15 @@
 
       if (S_ISBLK (st.st_mode) && st.st_rdev == dev)
 	{
+#ifdef __linux__
+	  if (ent->d_name[0] == 'd' &&
+	      ent->d_name[1] == 'm' &&
+	      ent->d_name[2] == '-' &&
+	      ent->d_name[3] >= '0' &&
+	      ent->d_name[3] <= '9')
+	    continue;
+#endif
+
 	  /* Found!  */
 	  char *res;
 	  char *cwd;

Reply via email to