[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 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

Attachment: mostrecent.pl
Description: Perl program


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