All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Haigh <netwiz@crc.id.au>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: pv-grub and grub.conf locations
Date: Fri, 07 Nov 2014 23:17:59 +1100	[thread overview]
Message-ID: <545CB877.4060807@crc.id.au> (raw)
In-Reply-To: <545CAFC7.20501@crc.id.au>


[-- Attachment #1.1: Type: text/plain, Size: 2809 bytes --]



On 7/11/2014 10:40 PM, Steven Haigh wrote:
> On 7/11/2014 10:19 PM, Stefano Stabellini wrote:
>> On Fri, 7 Nov 2014, Steven Haigh wrote:
>>> Hi Stefano,
>>>
>>> Sorry to hassle you directly - but I'm trying to figure out a use case
>>> of pv-grub to replace most pygrub configurations.
>>
>> No worries. I CC'ed xen-devel, because I think that this is an
>> interesting question that could be useful to other people too.
>>
>>
>>> I have two main locations where the grub config may live:
>>> 	1) (hd0)/boot/grub/grub.conf or
>>> 	2) (hd0,0)/boot/grub/grub.conf
>>>
>>> This depends if the DomU is created by something like the debian
>>> installer which refuses to install to a 'whole disk' - or say my EL6
>>> kickstart which installs to /dev/xvda as ext4 (which is easier to manage).
>>>
>>> From what I've been reading, there is no way to pass both of these to
>>> pv-grub and let it deal with whichever one exists.
>>>
>>> Interestingly, pygrub seems to search all paths to make this work - ie
>>> you only need to specify:
>>> 	bootloader = 'pygrub'
>>>
>>> As I'm trying to generate generic config files, it makes life much
>>> harder to implement pv-grub as the loader (even though its preferred).
>>>
>>> Any thoughts on this?
>>
>> Unfortunately it doesn't look like there is a way to do that at the
>> moment. But I agree it would be useful and we might be able to make it
>> work for the next release (Xen 4.6).
>>
> 
> Well, from digging through the grub 0.97 documentation, it *may* be
> possible - however documentation on pv-grub seems to be very rare.
> 
> Interestingly, from the grub documentation:
> 13.3.11 find
> — Command: find filename
> 
>     Search for the file name filename in all mountable partitions and
> print the list of the devices which contain the file. The file name
> filename should be an absolute file name like /boot/grub/stage1.
> 
> Also:
> 13.3.6 configfile
> — Command: configfile file
> 
>     Load file as a configuration file.
> 
> It wouldn't be too hard to imagine a grub configuration script that
> could be loaded (somehow) into the 'extra' section of the DomU config
> that basically passes the output of 'find /boot/grub/grub.conf' to
> configfile $result and uses that to boot.
> 
> This may actually be possible already - but I haven't found any
> documentation that points to it or any configurations that have been
> published.
> 
> Any further feedback from anyone who has seen this may help out...

Interestingly, if this is a bug or not:

grubdom> debug
 Debug mode is turned on

grubdom> find /boot/grub/grub.conf

Error 15: File not found

grubdom>


-- 
Steven Haigh

Email: netwiz@crc.id.au
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2014-11-07 12:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <545BFBB3.9010303@crc.id.au>
2014-11-07 11:19 ` pv-grub and grub.conf locations Stefano Stabellini
2014-11-07 11:40   ` Steven Haigh
2014-11-07 12:17     ` Steven Haigh [this message]

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=545CB877.4060807@crc.id.au \
    --to=netwiz@crc.id.au \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.