Bug#505517: [Pkg-xen-devel] #505517 [grub-pc] Dosen't handle xen dom0 kernel automagically [PATCH]

Ian Campbell ijc at hellion.org.uk
Mon Nov 17 18:31:00 UTC 2008


On Mon, 2008-11-17 at 18:52 +0100, Didier Raboud wrote:
> Le lundi 17 novembre 2008 18:30:33 Ian Campbell, vous avez écrit :
> > > * grub-pc_01_add_xen_support.patch
> > > * grub-pc_02_add_xen_support.patch
> > > * grub-pc_03_add_xen_support.patch
> > > 	Add a 10_xen in /etc/grub.d/ for support of the Xen hypervisors
> > > 	Lists all the *-xen-* kernels for each hypervisor version
> >
> > Only kernels which have CONFIG_XEN_PRIVILEGED_GUEST=y should get a
> > hypervisor style stanza (in addition to a native one as discussed
> > above).
> 
> Ok. So a reasonable approach would be to parse the /boot/config* files to now 
> which kernels could be used as dom0. Right ?

That's what grub-legacy's update-grub does, I think it makes sense.

> > Usually with grub1 Xen was listed first (I guess since in all likelihood
> > if you installed it you will boot it) so perhaps 09_xen ???
> 
> When I begun to work on it, I had a 08_xen, but then I read /etc/grub.d/README 
> which states the "native boot entries", so I guessed that a 10_* would be the 
> appropriate. A trick could be to name it 10_hypervisors_xen so that it would be 
> taken 'before' 10_linux.

Ah, right. Shame that it is spec'd as specific numbers rather than
ranges. I'd have gone for 20-40 native and 60-80 third party with
existing entries falling in the middle of the range, or something like
that...

> Anyway, I don't know if I have the skills and time to do it properly, but I'll 
> make a second try soon !
> 
> Final note : do you think that these eventual patches would have their place in 
> grub-pc or in xen-whatever ?

I guess either one could make sense but I'm not maintainer of either of
them. I'd probably err on the grub side, for no particular reason.

Ian.
-- 
Ian Campbell

If you are good, you will be assigned all the work.  If you are real
good, you will get out of it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20081117/fab594fb/attachment-0001.pgp 


More information about the Pkg-grub-devel mailing list