Add a "Shutdown" action to the Shutdown button in the conversion dialog,
before the Reboot action: this way it is possible to shutdown the
physical server directly from the GUI after the conversion.
---
p2v/gui.c | 24 +++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff
On Tue, Nov 06, 2018 at 12:51:30PM +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 now"));
> +}
I've tested this and it works b
On Tuesday, 6 November 2018 14:07:51 CET Richard W.M. Jones wrote:
> On Tue, Nov 06, 2018 at 12:51:30PM +0100, Pino Toscano wrote:
> > +static void
> > +shutdown_clicked (GtkWidget *w, gpointer data)
> > +{
> > + if (!is_iso_environment)
> > +return;
> > +
> > + sync ();
> > + sleep (2);
> >
On Tue, Nov 06, 2018 at 04:06:35PM +0100, Pino Toscano wrote:
> On Tuesday, 6 November 2018 14:07:51 CET Richard W.M. Jones wrote:
> > On Tue, Nov 06, 2018 at 12:51:30PM +0100, Pino Toscano wrote:
> > > +static void
> > > +shutdown_clicked (GtkWidget *w, gpointer data)
> > > +{
> > > + if (!is_iso
On Tuesday, 6 November 2018 16:29:08 CET Richard W.M. Jones wrote:
> On Tue, Nov 06, 2018 at 04:06:35PM +0100, Pino Toscano wrote:
> > On Tuesday, 6 November 2018 14:07:51 CET Richard W.M. Jones wrote:
> > > On Tue, Nov 06, 2018 at 12:51:30PM +0100, Pino Toscano wrote:
> > > > +static void
> > > >