Re: Initial-Setup Addon failure feedback for user

Martin Kolman <[email protected]> Mon, 04 Mar 2019 12:18:24 +0100
Newsgroups gmane.linux.redhat.anaconda.devel
Message-ID <[email protected]>
On Wed, 2019-02-06 at 19:09 +0000, Kuna, Martin A wrote:
> Hi Red Hat Installer Engineering Team,
> 
>  
> 
> I have a few anaconda/initial-setup add-ons and require that a user may not continue through initial-setup to the
> desktop if an add-on fails to perform a given action.
> 
> 
> Being able to provide feedback to the user, a simple “Please reinstall the system.” and a reboot button is all I am
> looking to accomplish. It appears the execute method currently ignores failures.
Interesting, I would expect an execute() failure to raise an exception, I'll have to check.
>  
> 
> Is there is an easy way to prevent the user from continuing if an add-on fails in initial-setup? Aside from issuing a
> reboot cmd, which keeps the user in initial-setup since /.unconfigured is not cleaned up.
Is the failing addon one you also control or some third party addon ? If it's yours, you could run the code from
execute() part (or a check if the execute() run can succeed) to apply() and set the spoke to not-ready, set spoke
statusa to "reinstall needed" and show a warning bar. That should prevent users from continuing to the broken system.
>  
> Best Regards,
> Martin Kuna
> 
> 
> 
> 
> _______________________________________________Anaconda-devel-list mailing [email protected]
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/anaconda-devel-list