All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: Sam Morris <sam@robots.org.uk>
Cc: grub-devel@gnu.org, 422851@bugs.debian.org,
	Thomas Stewart <thomas@stewarts.org.uk>
Subject: Re: "grub-probe -t partmap" doesn't work with software RAID
Date: Fri, 18 May 2007 08:51:37 +0200	[thread overview]
Message-ID: <20070518065137.GA2485@aragorn> (raw)
In-Reply-To: <20070513164407.GA11143@aragorn>

[-- Attachment #1: Type: text/plain, Size: 975 bytes --]

On Sun, May 13, 2007 at 06:44:07PM +0200, Robert Millan wrote:
> On Sun, May 13, 2007 at 12:02:26PM +0100, Sam Morris wrote:
> > On Sat, 2007-05-12 at 22:16 +0100, Sam Morris wrote:
> > > On Wed, 2007-05-09 at 18:13 +0200, Robert Millan wrote:
> > > > I'm forwarding you a bug report from Debian.  It seems that the grub-probe
> > > > -t partmap feature I just added doesn't play nice with RAID.  Unfortunately,
> > > > I have no idea how software RAID is implemented.  Is it okay to just exit
> > > > succesfuly and install core.img without any partmap module?
> 
> ... so apparently it isn't.  We still need to detect this somehow, or maybe we
> could just print "pc gpt".. anyone can cast some light on this?

How about this as temporary solution?  It's ugly, but it's not worse than what
we had before.

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.

[-- Attachment #2: raid_partmap.diff --]
[-- Type: text/x-diff, Size: 1596 bytes --]

Index: util/i386/efi/grub-install.in
===================================================================
RCS file: /sources/grub/grub2/util/i386/efi/grub-install.in,v
retrieving revision 1.1
diff -u -r1.1 grub-install.in
--- util/i386/efi/grub-install.in	16 May 2007 15:05:02 -0000	1.1
+++ util/i386/efi/grub-install.in	18 May 2007 06:48:02 -0000
@@ -187,7 +187,7 @@
 fi
 
 # Then the partition map module.
-partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir}`
+partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir} || echo pc gpt`
 if test "x$partmap_module" = x -a "x$modules" = x; then
     echo "Auto-detection of a partition map module failed." 1>&2
     echo "Please specify the module with the option \`--modules' explicitly." 1>&2
Index: util/i386/pc/grub-install.in
===================================================================
RCS file: /sources/grub/grub2/util/i386/pc/grub-install.in,v
retrieving revision 1.13
diff -u -r1.13 grub-install.in
--- util/i386/pc/grub-install.in	7 May 2007 19:54:46 -0000	1.13
+++ util/i386/pc/grub-install.in	18 May 2007 06:48:02 -0000
@@ -217,7 +217,7 @@
 fi
 
 # Then the partition map module.
-partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir}`
+partmap_module=`$grub_probe --target=partmap --device-map=${device_map} ${grubdir} || echo pc gpt`
 if test "x$partmap_module" = x -a "x$modules" = x; then
     echo "Auto-detection of a partition map module failed." 1>&2
     echo "Please specify the module with the option \`--modules' explicitly." 1>&2

  reply	other threads:[~2007-05-18  6:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1178710623.4102.37.camel@xerces>
     [not found] ` <20070509135853.GA31878@aragorn>
     [not found]   ` <1178719368.4102.48.camel@xerces>
     [not found]     ` <20070509151643.GB16077@aragorn>
     [not found]       ` <1178725065.4102.65.camel@xerces>
2007-05-09 16:13         ` "grub-probe -t partmap" doesn't work with software RAID Robert Millan
     [not found]           ` <1179004601.3922.4.camel@xerces>
     [not found]             ` <1179054146.4014.9.camel@xerces>
2007-05-13 16:44               ` Robert Millan
2007-05-18  6:51                 ` Robert Millan [this message]
     [not found]                   ` <1179535793.4466.3.camel@xerces>
2007-05-19  9:33                     ` Bug#422851: " Robert Millan
     [not found]                       ` <1179575266.4466.5.camel@xerces>
2007-05-19 12:10                         ` Robert Millan
     [not found]                           ` <1179580232.4542.8.camel@xerces>
2007-05-19 14:08                             ` Robert Millan
     [not found]                               ` <1179585253.4270.1.camel@xerces>
2007-05-19 15:32                                 ` fallback for "grub-probe -t partmap" failures Robert Millan
2007-05-19 16:01                                   ` Sam Morris
     [not found]                             ` <1179584038.4145.10.camel@xerces>
2007-05-19 15:51                               ` problem with RAID and LBA addressing Robert Millan
     [not found]                                 ` <1179590781.4270.28.camel@xerces>
2007-05-19 16:45                                   ` Robert Millan
2007-05-19 17:51                                     ` Yoshinori K. Okuji
2007-05-20  7:12                                       ` Robert Millan
2007-05-21 13:25                                     ` Amin Azez
2007-05-21 13:44                                       ` Sam Morris
2007-05-21 11:08                               ` Bug#423022: Bug#422851: "grub-probe -t partmap" doesn't work with software RAID Jeroen Dekkers
2007-05-21 12:23                                 ` Sam Morris
2007-05-21 13:13                                   ` Jeroen Dekkers
2007-05-21 18:35                                     ` Sam Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070518065137.GA2485@aragorn \
    --to=rmh@aybabtu.com \
    --cc=422851@bugs.debian.org \
    --cc=grub-devel@gnu.org \
    --cc=sam@robots.org.uk \
    --cc=thomas@stewarts.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.