Skip to content

Commit

Permalink
Allow to defer user creation until initial-setup, if kickstart is used
Browse files Browse the repository at this point in the history
Useful for OEM installation, to let the user choose the name.
  • Loading branch information
marmarek committed Jan 13, 2020
1 parent 62dda35 commit 3f83298
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?=
Date: Sun, 15 Dec 2019 17:30:10 +0100
Subject: [PATCH] Make sure that a user is created at installation time

But allow to defer it when kickstart is used.
---
pyanaconda/ui/gui/spokes/user.py | 5 ++---
pyanaconda/ui/tui/spokes/user.py | 8 ++------
Expand Down Expand Up @@ -35,7 +36,7 @@ index a028a556b..ea51534fc 100644
def mandatory(self):
"""Only mandatory if no admin user has been requested."""
- return not self._users_module.CheckAdminUserExists()
+ return True
+ return not flags.automatedInstall

def apply(self):
# set the password only if the user enters anything to the text entry
Expand Down Expand Up @@ -75,7 +76,7 @@ index ac01deb8a..b915368c6 100644
def mandatory(self):
"""Only mandatory if no admin user has been requested."""
- return not self._users_module.CheckAdminUserExists()
+ return True
+ return not flags.automatedInstall

@property
def status(self):
Expand Down

0 comments on commit 3f83298

Please sign in to comment.