[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Scan root device dynamically at startup
From: |
Robert Millan |
Subject: |
Re: [PATCH] Scan root device dynamically at startup |
Date: |
Wed, 28 May 2008 15:54:02 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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 /.)
- [PATCH] Scan root device dynamically at startup, Bean, 2008/05/20
- Re: [PATCH] Scan root device dynamically at startup,
Robert Millan <=
- Re: [PATCH] Scan root device dynamically at startup, Bean, 2008/05/28
- Re: [PATCH] Scan root device dynamically at startup, Robert Millan, 2008/05/29
- Re: [PATCH] Scan root device dynamically at startup, Bean, 2008/05/29
- Re: [PATCH] Scan root device dynamically at startup, Tomáš Ebenlendr, 2008/05/29
- Re: [PATCH] Scan root device dynamically at startup, Robert Millan, 2008/05/29
- Re: [PATCH] Scan root device dynamically at startup, Robert Millan, 2008/05/30
- Re: [PATCH] Scan root device dynamically at startup, Bean, 2008/05/30
- Re: [PATCH] Scan root device dynamically at startup, Robert Millan, 2008/05/29