From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub-probe seems to be having problems
Date: Tue, 20 Mar 2012 20:10:12 +0100 [thread overview]
Message-ID: <4F68D614.1090809@gmail.com> (raw)
In-Reply-To: <20120320190235.GF10301@caffeine.csclub.uwaterloo.ca>
On 20.03.2012 20:02, Lennart Sorensen wrote:
> On Tue, Mar 20, 2012 at 11:28:18AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>> There is no need to debug. I know exactly why GRUB is confused:
>> because as far as my understanding goes the superblock makes no
>> sense (details in previous mail). What we need is that someone
>> familiar with md tells me how this sector should be interpreted.
> This is just weird.
>
> I run grub-probe and sometimes it works and sometimes it doesn't.
>
> Something is giving inconsistent results. I don't know if it is a
> problem in 2.6.32 kernel returning inconsistent data for the superblock,
> or if grub isn't correctly initializing the superblock before filling it,
> or if grub isn't actually reading the superblock properly.
My conclusions are based on direct examination of the files you supplied
not GRUB output.
> Sometimes /dev/sdd2 isn't being recognized as a member of /dev/md0,
> and other times it is.
>
> By the way, the code in grub-install that tries to check if a PReP
> partition is empty using 'cmp' doesn't work. It always fails.
> The suggestion it gives doesn't help.
>
> Forcing the partition to contain an elf header makes grub-install happy,
> but that's not so easy to do until you got grub already installed there.
>
> Also a recent change to non powerpc ieee1275 in grub-install has broken
> nvsetenv, since ofpath is no longer being set on powerpc. So boot-device
> isn't set anymore. This worked a few weeks ago.
The change in question isn't "non-powerpc", quite the opposite, it was
to fix the install on powerpc Mac. Just different vendors use different
boot methods.
Please try this:
=== modified file 'util/grub-install.in'
--- util/grub-install.in 2012-03-10 11:33:52 +0000
+++ util/grub-install.in 2012-03-20 19:08:57 +0000
@@ -764,6 +764,12 @@
echo " dd if=/dev/zero of=${install_device}"
exit 1
fi
+ ofpath="`$ofpathname "${install_device}"`" || {
+ # TRANSLATORS: "device tree path" is the name of the device
+ # for IEEE1275
+ gettext_printf "Couldn't find IEEE1275 device tree path for
%s.\nYou will have to set \`boot-device' variable manually.\n" "$dev" 1>&2
+ exit 1
+ }
fi
"$nvsetenv" boot-device "$boot_device" || {
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
next prev parent reply other threads:[~2012-03-20 19:10 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 19:47 grub-probe seems to be having problems Lennart Sorensen
2012-03-01 20:04 ` Lennart Sorensen
2012-03-01 20:07 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-01 20:15 ` Lennart Sorensen
2012-03-01 20:19 ` Lennart Sorensen
2012-03-03 22:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-05 20:07 ` Lennart Sorensen
2012-03-05 23:10 ` Lennart Sorensen
2012-03-08 17:46 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-08 19:01 ` Lennart Sorensen
2012-03-08 19:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-08 20:15 ` Lennart Sorensen
2012-03-08 23:37 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-09 14:53 ` Lennart Sorensen
2012-03-09 0:11 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-09 15:39 ` Lennart Sorensen
2012-03-09 15:43 ` Lennart Sorensen
2012-03-09 15:47 ` Lennart Sorensen
2012-03-09 15:48 ` Vladimir 'φ-coder/phcoder' Serbinenko
[not found] ` <20120309160538.GA14853@caffeine.csclub.uwaterloo.ca>
2012-03-09 18:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-09 18:39 ` Lennart Sorensen
2012-03-09 20:37 ` Lennart Sorensen
2012-03-19 21:28 ` Lennart Sorensen
2012-03-20 10:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-20 19:02 ` Lennart Sorensen
2012-03-20 19:10 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2012-03-20 19:13 ` Lennart Sorensen
2012-03-20 19:14 ` Lennart Sorensen
2012-03-20 19:41 ` Lennart Sorensen
2012-03-20 19:11 ` Lennart Sorensen
2012-03-22 2:27 ` Fwd: " jlcenter
2012-03-22 2:46 ` NeilBrown
2012-03-22 17:52 ` Fwd: " jlcenter
2012-03-09 0:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
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=4F68D614.1090809@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
--cc=lsorense@csclub.uwaterloo.ca \
/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.