Re: [PATCH v2 5/5] qga/commands-posix: 'guest-shutdown' for Solaris

2022-04-15 Thread Marc-André Lureau
On Thu, Apr 14, 2022 at 2:04 AM Andrew Deason wrote: > On Solaris, instead of the -P, -H, and -r flags, we need to provide > the target init state to the 'shutdown' command: state 5 is poweroff, > 0 is halt, and 6 is reboot. We also need to pass -g0 to avoid the > default 60-second delay, and -y

[PATCH v2 5/5] qga/commands-posix: 'guest-shutdown' for Solaris

2022-04-13 Thread Andrew Deason
On Solaris, instead of the -P, -H, and -r flags, we need to provide the target init state to the 'shutdown' command: state 5 is poweroff, 0 is halt, and 6 is reboot. We also need to pass -g0 to avoid the default 60-second delay, and -y to avoid a confirmation prompt. Implement this logic under an