[Libguestfs] [PATCH 2/2] p2v: add a Shutdown action (RHBZ#1642044)

Richard W.M. Jones rjones at redhat.com
Tue Nov 6 10:09:19 UTC 2018


On Mon, Nov 05, 2018 at 06:31:25PM +0100, Pino Toscano wrote:
> +static void
> +shutdown_clicked (GtkWidget *w, gpointer data)
> +{
> +  if (!is_iso_environment)
> +    return;
> +
> +  sync ();
> +  sleep (2);
> +  ignore_value (system ("/sbin/shutdown"));
> +}
> +

The shutdown button doesn't actually work[1].  I don't
know why because /sbin/shutdown exists.

Rich.

[1] Using ‘make -C p2v run-virt-p2v-in-a-vm’

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list