All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: David Miller <davem@davemloft.net>
Cc: grub-devel@gnu.org
Subject: Re: Broken common.rmk change
Date: Sun, 6 Dec 2009 14:10:26 +0100	[thread overview]
Message-ID: <20091206131026.GA24598@thorin> (raw)
In-Reply-To: <20091206.012146.124293458.davem@davemloft.net>

On Sun, Dec 06, 2009 at 01:21:46AM -0800, David Miller wrote:
> 
> Robert, the set of objects used to build grub-mkdevicemap on
> sparc64-ieee1275 is not the same as those used on other architectures.
> So this change was not correct:
> 
> 2009-11-26  Robert Millan  <rmh.grub@aybabtu.com>
> 
> 	* conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
>  ...
> 	* conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
> 	(grub_mkdevicemap_SOURCES): Remove.
>  ...
> 	* conf/sparc64-ieee1275.rmk: Likewise.
> 
> In particular, we use a special implementation devicemap.c on
> sparc64-ieee1275 so that openfirmware device nodes are emitted instead
> of "hd0" et al.
> 
> So when you moved the build rule into common.rmk you broke this.
> 
> This is probably the primary reason that the current tree works for
> nobody on sparc64 :-)
> 
> Before I found this problem, I tested with an existing devicemap and
> config file on a Niagara LDOM Linux guest and current trunk worked as
> well as it did when I was last active several months ago and I was
> able to boot Linux kernels with it.

We're actually in the process of getting rid of device.map;  in fact the
"hd0" names you see have no real effect on i386-pc, they're just ignored.

We now have more robust code that doesn't hardcode drive names.  grub-setup
now accepts plain system devices as arguments, even if they're not listed in
device.map.  grub-mkconfig generates a grub.cfg that relies on UUIDs instead
of hardcoding, etc.

But I might have missed some detail.  Is there a peculiarity of
sparc64-ieee1275 that makes this approach unpractical?

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



  reply	other threads:[~2009-12-06 13:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-06  9:21 Broken common.rmk change David Miller
2009-12-06 13:10 ` Robert Millan [this message]
2009-12-07  0:21   ` David Miller
2009-12-07 14:04     ` Robert Millan
2009-12-08  6:47       ` David Miller
2009-12-07  1:22   ` David Miller
2009-12-07 10:20     ` Colin Watson
2009-12-07 11:13       ` David Miller
2009-12-07 10:48     ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-07 11:17       ` David Miller
2009-12-07 11:30         ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-07 14:05     ` Robert Millan
2009-12-07 19:50       ` David Miller
2009-12-07 20:23         ` Robert Millan
2009-12-07 21:23           ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-09 21:45             ` Robert Millan
2009-12-10  7:15               ` BVK Chaitanya
2009-12-10 11:43                 ` Seth Goldberg
2009-12-24 21:15               ` Robert Millan

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=20091206131026.GA24598@thorin \
    --to=rmh@aybabtu.com \
    --cc=davem@davemloft.net \
    --cc=grub-devel@gnu.org \
    /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.