[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does grub locate grub.cfg

From: Roger James
Subject: Re: How does grub locate grub.cfg
Date: Mon, 22 Aug 2011 20:07:15 +0000 (UTC)
User-agent: Loom/3.14 (

Bill Marcum <address@hidden> writes:

> On Sun, Aug 21, 2011 at 04:30:02PM +0100, Roger James wrote:
> > Help!
> > 
> > What is the algorithm (if any) used by grub2 to locate the grub.cfg
> > file? Are there any hints encoded into the image files by
> > grub-mkimage and grub-setup, for example the --prefix parameter to
> > grub-mkimage and the -root-device parameter passed to grub-setup. I
> > am interesting in finding information on this before embarking on an
> > installation which may end up with two different /boot/grub/grub.cfg
> > files in different paritions on different drives!
> > 
> > I have not be able to find this information in any documentation,
> > and one quick look at the source tree led me to ask here first!
> > 
> As far as I know, it looks in /boot/grub relative to the filesystem
> or chroot where grub-setup is executed.
> > As an aside, is there such a thing as a grub image analyser that can
> > take a grub boot installation/image and print out what it contains?
> > 
> > Thanks,
> > 
> > Roger


I have looked again and I am guessing that the --prefix and --root-device
parameters are in somehow encoded into the boot image and then are used to
populate Grub's "prefix" and "root" special environment variables. Can anyone
confirm this?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]