[Libguestfs] libguestfs question - multiple partitions in the guest

Richard W.M. Jones rjones at redhat.com
Wed Aug 1 20:08:44 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.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mostrecent.pl
Type: application/x-perl
Size: 1407 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20120801/5a324b8b/attachment.pl>


More information about the Libguestfs mailing list