[Libguestfs] libguestfs question - multiple partitions in the guest

Shawn Kennedy Shawn.Kennedy at alcatel-lucent.com
Wed Aug 1 20:33:57 UTC 2012


> On Wed, Aug 01, 2012 at 08:54:01PM +0100, Richard W.M. Jones wrote:
> > (1) You could look at tell-tale signs to see which root device has
> > most recently been mounted.  Probably the simplest thing is to look at
> > the date of /var/log/messages in each potential root, and choose the
> > most recent one (since /var/log/messages is reliably and frequently
> > updated when a guest boots and runs).
> 
> As in the attached program.

Neat!!  I just looked at it - very nice!!  We will give it a try
and report our findings!  If it does work, we will have to convert
it to Python (preferred).

Thanks!
Shawn




More information about the Libguestfs mailing list