This is a better alternative to:
https://www.redhat.com/archives/libguestfs/2011-February/msg00006.html
Tested by running 'make check'.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org