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