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

Martin Sivak msivak at redhat.com
Wed Sep 5 15:53:16 UTC 2012


I see, well /usr/bin/setup does not help as it seems to be missing root password "plugin".

Well, I will have to revert the patch then.

But what does happen when somebody reboots GUI install to text mode with no root? Do we have any solution for this? Because it will probably be quite common use case for small servers..

----- Original Message -----
> > 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
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
> 


More information about the anaconda-patches mailing list