All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Scan root device dynamically at startup
Date: Wed, 28 May 2008 15:54:02 +0200	[thread overview]
Message-ID: <20080528135402.GE26495@thorin> (raw)
In-Reply-To: <ca0f59980805200322q7415b242mf4f3fd6ba4cc3401@mail.gmail.com>

On Tue, May 20, 2008 at 06:22:25PM +0800, Bean wrote:
> Hi,
> 
> For normal boot, the root device is passed to core.img in preloader.
> However, if we load grub2 using linux header, there is no way to know
> the root device. This patch add a new module findroot that can be used
> to scan the root directory at startup.
> 
> One important usage is to create a grub2 boot file for vista boot loader:
> 
> mkimage -o g2ntfs.img pc ntfs biosdisk findroot
> cat lnxboot.img g2ntfs.img > g2ntfs.mbr
> 
> The result g2ntfs.mbr is within 32K, which can be loaded by vista in
> one pass, no need to use the g2ldr.mbr anymore. The findroot modules
> ensure that prefix is set properly before switching to normal mode.
> 
> If findroot is not used to create core.img, the original booting method remains.

The module is called findroot, but it initialises $prefix rather than $root.
Shouldn't it be findprefix or so?

Also, what this module is doing looks very similar to "search --set".  Did
you check if search command can be used for what you want?  (or otherwise
adapted)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2008-05-28 13:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-20 10:22 [PATCH] Scan root device dynamically at startup Bean
2008-05-28 13:54 ` Robert Millan [this message]
2008-05-28 14:53   ` Bean
2008-05-29  9:58     ` Robert Millan
2008-05-29 10:46       ` Bean
2008-05-29 12:05         ` Tomáš Ebenlendr
2008-05-29 12:38           ` Robert Millan
2008-05-30 13:29           ` Robert Millan
2008-05-30 13:35             ` Bean
2008-05-29 12:50         ` 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=20080528135402.GE26495@thorin \
    --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.