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

Re: [Libguestfs] libguestfs question - multiple partitions in the guest



On Wed, Aug 01, 2012 at 05:02:28PM -0500, Shawn Kennedy wrote:
> > -----Original Message-----
> > From: Richard W.M. Jones [mailto:rjones redhat com]
> > Sent: Wednesday, August 01, 2012 4:22 PM
> > To: Shawn Kennedy
> > Cc: libguestfs redhat com; 'Smudde, Mark Alan (Mark)'; 'Tockstein, James E (Jim)'
> > Subject: Re: [Libguestfs] libguestfs question - multiple partitions in the guest
> > 
> > On Wed, Aug 01, 2012 at 03:31:19PM -0500, Shawn Kennedy wrote:
> > > I wonder - maybe an new tool (virt-grub) to dump out the grub
> > > content of the guest image (if linux)!! :-) :-) :-)
> > 
> > It's actually pretty simple to script this.  See attached
> > (requires a grub1 guest).
> 
> Luckily, we still are grub1 .....
> 
> # grub --version
> grub (GNU GRUB 0.97)
> 
> So I ran it and it tells me I have 2 OSs ...
> 
> 	root: /dev/VG1/LV0001.root
> 	root: /dev/VG1/LV0002.root
> 
> I thought it might dump the running grub, [...]

I thought it would do too.  One problem with Augeas is that it relies
on the exact location of the configuration file.

You can try changing:

  display ("/files/etc/grub.conf")

to:

  display ("/files")

and see if the grub config shows up anywhere in the (likely to be
huge) output.

Rich.

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


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