[Libguestfs] libguestfs question - multiple partitions in the guest

Richard W.M. Jones rjones at redhat.com
Thu Aug 2 17:37:59 UTC 2012


On Wed, Aug 01, 2012 at 05:36:12PM -0500, Shawn Kennedy wrote:
> You are right /files is a very big list and after 10+ minutes
> of running, it wasn't done.  I narrowed it down (/files/boot)
> to see if I could find the files in /boot (after all, 
> /boot/grub/grub.com is where it really is) and alas,
> it doesn't find it, just found this:
> 
> root: /dev/VG1/LV0001.root
> /files/boot/grub/device.map/hd0   /dev/vda
> root: /dev/VG1/LV0002.root
> /files/boot/grub/device.map/hd0   /dev/vda

Augeas isn't required.  You can just download and parse the grub
configuration yourself if you know where it is located, ie:

  lines = g.read_lines ("/boot/grub/grub.conf")
  for line in lines:
    <your parser here>

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list