[PATCH] Make TUI password spoke behave the same as it's GUI counterpart

Chris Lumens clumens at redhat.com
Tue Sep 4 13:56:25 UTC 2012


> diff --git a/pyanaconda/ui/tui/spokes/password.py b/pyanaconda/ui/tui/spokes/password.py
> index ccf3f33..649505b 100644
> --- a/pyanaconda/ui/tui/spokes/password.py
> +++ b/pyanaconda/ui/tui/spokes/password.py
> @@ -37,12 +37,12 @@ class PasswordSpoke(NormalTUISpoke):
>  
>      @property
>      def completed(self):
> -        return self._password is not None
> +        return True
>  
>      @property
>      def status(self):
> -        if self._password is None:
> -            return _("Password is not set.")
> +        if not self.data.rootpw.password:
> +            return _("Root account disabled.")
>          else:
>              return _("Password is set.")

No, we did it this way on purpose.  There's no reliable text mode
firstboot across architectures, so there's no way to create a user, so
the user will be completely locked out of the machine in some cases.

- Chris


More information about the anaconda-patches mailing list