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

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



> -----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, but then again, it
doesn't know what "running" is it looks like using /var/log/messages
file to determine what is (likely) mounted in the guest.

Thanks!
Shawn


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