[PATCH] ui/ncurses: Always cancel autoboot on exit

Stewart Smith stewart at linux.vnet.ibm.com
Thu Nov 23 15:26:43 AEDT 2017


Samuel Mendoza-Jonas <sam at mendozajonas.com> writes:
> If the ncurses UI exits before it has contacted the server it is meant
> to fork a process to wait until the connection is made and cancel
> autoboot. This prevents users dropping to the shell and then having the
> machine boot out from underneath them.
>
> In e1e2ca68 "Spawn shell in exit handler" the UI doesn't actually exit
> on "exit", but it isn't listening to server events either while the
> shell is active. In this case make sure we still fork to notify the
> server.
>
> Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
> ---
>  ui/ncurses/nc-cui.c | 76 +++++++++++++++++++++++++++--------------------------
>  1 file changed, 39 insertions(+), 37 deletions(-)

(assuming this is what you got me to test in my qemu magic)

Tested-by: Stewart Smith <stewart at linux.vnet.ibm.com>

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Petitboot mailing list