[Libguestfs] [PATCH] Use grub entries to find Linux kernels

Richard W.M. Jones rjones at redhat.com
Sun Aug 2 18:54:27 UTC 2009


On Sun, Aug 02, 2009 at 04:33:20PM +0100, Richard W.M. Jones wrote:
> On Fri, Jul 31, 2009 at 05:40:23PM +0100, Matthew Booth wrote:
> > This change adds grub parsing to Lib.pm. It adds the following structure to $os:
> >   {boot}
> >   ->{configs}
> >     ->[0]
> >       ->{title}   = "Fedora (2.6.29.6-213.fc11.i686.PAE)"
> >       ->{kernel}  = \kernel
> >       ->{cmdline} = "ro root=/dev/mapper/vg_mbooth-lv_root rhgb"
> >       ->{initrd}  = \initrd
> >   ->{default} = 0
> > 
> > The kernel and initrd entries are just references to their top level entries
> > under kernels and initrd_modules respectively.
> > 
> > It also changes the way Linux kernels and initrd are discovered. Instead of
> > searching /lib/modules and /boot for files with matching names, kernels and
> > initrds are scanned as they are discovered in grub.conf.
> 
> The patch looks good, but it can't go in because it is 
> missing updates to the associated POD.

What I wrote above wasn't very clear: I have checked the full patch
and it's ACKed, but it needs the POD to be updated fully to document
these changes before it can be submitted.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora




More information about the Libguestfs mailing list