All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Watson <cjwatson@ubuntu.com>
To: grub-devel@gnu.org
Subject: Re: future of grub commands setup and install ?
Date: Fri, 10 Sep 2010 15:27:57 +0100	[thread overview]
Message-ID: <20100910142756.GT21862@riva.ucam.org> (raw)
In-Reply-To: <20100910141742.GQ2632@caffeine.csclub.uwaterloo.ca>

On Fri, Sep 10, 2010 at 10:17:42AM -0400, Lennart Sorensen wrote:
> On Fri, Sep 10, 2010 at 09:46:53AM +0200, lode leroy wrote:
> > I think it would be helpful if a command existed to install grub from grub, 
> > given a directory /boot/grub/ already present, i.e. Write boot sector+stage1 
> > to the disk. It may be easy to copy files onto the filesystem, but not-so-easy
> > to create a working native grub.
> 
> grub2 doesn't have a stage1.  It creates one after examining the system
> it is running on to determine which modules have to be used to create
> the stage1.

You and lode leroy are both confusing GRUB Legacy's Stage 1.5 (or
possibly Stage 2) with Stage 1.  GRUB Legacy's Stage 1 is the boot
sector, and is precisely equivalent to GRUB 2's boot.img, which is a
single 512-byte file.

> Also, should it be generating an efi, or pc-bios, or ieee-* image?

This is clearly specific to the GRUB build you're using.

> With grub1 it was simple.  There was one stage1, and a certain set of
> stage1.5 files (one per supported filesystem) and a stage2.  That was it.
> nothing modular, nothing to assemble.  If you take all the modules for
> grub2, you end up with a 1MB+ stage1 file, which you can't embed in
> one track.

Modules are built into a core.img object which is analogous to something
a bit like GRUB Legacy's Stage 1.5 and a bit like Stage 2.  See
http://www.gnu.org/software/grub/manual/grub.html#Images for a
conversion chart.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


  reply	other threads:[~2010-09-10 14:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-10  7:46 future of grub commands setup and install ? lode leroy
2010-09-10 11:22 ` Robert Millan
2010-09-10 15:01   ` Treutwein Bernhard
2010-09-10 14:17 ` Lennart Sorensen
2010-09-10 14:27   ` Colin Watson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-08 22:46 LiveCD bootloader Teresa e Junior
2010-09-09  7:53 ` future of grub commands setup and install ? Treutwein Bernhard
2010-09-09 12:14   ` Robert Millan
2010-09-10  6:28     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-09-10  6:38     ` Treutwein Bernhard

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=20100910142756.GT21862@riva.ucam.org \
    --to=cjwatson@ubuntu.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.