All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] grub-install for EFI
Date: Fri, 11 May 2007 18:11:34 +0200	[thread overview]
Message-ID: <20070511161134.GA30158@aragorn> (raw)
In-Reply-To: <20070511160314.GA30111@aragorn>

On Fri, May 11, 2007 at 06:03:14PM +0200, Robert Millan wrote:
> diff -Nur grub2-1.95+20070507.old/conf/i386-efi.rmk grub2-1.95+20070507/conf/i386-efi.rmk
> --- grub2-1.95+20070507.old/conf/i386-efi.rmk	2007-05-11 17:45:18.000000000 +0200
> +++ grub2-1.95+20070507/conf/i386-efi.rmk	2007-05-11 17:57:19.000000000 +0200
> @@ -6,7 +6,7 @@
>  
>  # Utilities.
>  bin_UTILITIES = grub-mkimage
> -#sbin_UTILITIES = grub-setup grub-mkdevicemap grub-probe
> +sbin_UTILITIES = grub-mkdevicemap grub-probe

grub-probe is needed to check partmap (so we don't have to assume gpt).

grub-mkdevicemap is needed to create device.map, without which grub-probe
won't work.

> diff -Nur grub2-1.95+20070507.old/util/i386/efi/grub-install.in grub2-1.95+20070507/util/i386/efi/grub-install.in
> --- grub2-1.95+20070507.old/util/i386/efi/grub-install.in	1970-01-01 01:00:00.000000000 +0100
> +++ grub2-1.95+20070507/util/i386/efi/grub-install.in	2007-05-11 18:00:44.000000000 +0200

Note: this grub-install.in is based on the i386/pc version.  I tried to keep
changes minimal, so if you diff them it'll produce readable output.

One thing that I'm not sure about is the CLI inconsistency.  Perhaps it
shouldn't take the directory as a standalone parameter, and instead use
--root-directory?

> diff -Nur grub2-1.95+20070507.old/util/i386/pc/biosdisk.c grub2-1.95+20070507/util/i386/pc/biosdisk.c
> --- grub2-1.95+20070507.old/util/i386/pc/biosdisk.c	2007-05-11 17:45:18.000000000 +0200
> +++ grub2-1.95+20070507/util/i386/pc/biosdisk.c	2007-05-11 17:57:19.000000000 +0200
> @@ -18,7 +18,7 @@
>   *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
>   */
>  
> -#include <grub/machine/biosdisk.h>
> +#include <grub/i386/pc/biosdisk.h>
>  #include <grub/disk.h>
>  #include <grub/partition.h>
>  #include <grub/pc_partition.h>
> diff -Nur grub2-1.95+20070507.old/util/i386/pc/grub-probe.c grub2-1.95+20070507/util/i386/pc/grub-probe.c
> --- grub2-1.95+20070507.old/util/i386/pc/grub-probe.c	2007-05-11 17:45:18.000000000 +0200
> +++ grub2-1.95+20070507/util/i386/pc/grub-probe.c	2007-05-11 17:57:19.000000000 +0200
> @@ -26,7 +26,7 @@
>  #include <grub/fs.h>
>  #include <grub/partition.h>
>  #include <grub/pc_partition.h>
> -#include <grub/machine/util/biosdisk.h>
> +#include <grub/i386/pc/util/biosdisk.h>
>  #include <grub/util/getroot.h>
>  #include <grub/term.h>

Not really sure about these.  Seems ugly, but biosdisk.h has the
grub_util_biosdisk_get_grub_dev definition, which is not really
i386/pc-specific.  Also, note that powerpc needs them as well if we
want update-grub to work there (haven't submitted this part, because it
grub-probe on powerpc has other issues that I cannot debug).

-- 
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.



  reply	other threads:[~2007-05-11 16:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-11 16:03 [PATCH] grub-install for EFI Robert Millan
2007-05-11 16:11 ` Robert Millan [this message]
2007-05-11 16:21   ` Robert Millan
2007-05-15 18:23     ` new patch Robert Millan
2007-05-15 20:22     ` [PATCH] grub-install for EFI Yoshinori K. Okuji
2007-05-16  6:17       ` Robert Millan
2007-05-17 19:17         ` Yoshinori K. Okuji
2007-05-15 20:20   ` Yoshinori K. Okuji
2007-05-16  6:31     ` Robert Millan
2007-05-16 15:38       ` grub-install for EFI (please test) Robert Millan
2007-05-15 20:16 ` [PATCH] grub-install for EFI Yoshinori K. Okuji
2007-05-16  6:25   ` Robert Millan
2007-05-17 19:18     ` Yoshinori K. Okuji
2007-05-18  6:37       ` Robert Millan
2007-05-18 18:27         ` Yoshinori K. Okuji
2007-05-19  9:43           ` Robert Millan
2007-05-19 17:21             ` Yoshinori K. Okuji
2007-05-20  7:19               ` 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=20070511161134.GA30158@aragorn \
    --to=rmh@aybabtu.com \
    --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.