anaconda: mark 'qubes' user name as reserved

'qubes' group is used internally, but useradd want to create a new group
named as new user, so 'qubes' user name should also be avoided.

Fixes QubesOS/qubes-issues#3777
This commit is contained in:
Marek Marczykowski-Górecki 2018-06-28 04:58:21 +02:00
parent e572efedd4
commit 017018b38e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -123,7 +123,7 @@ def validatePassword(pw, user="root", settings=None, minlen=None):
return (valid, strength, message)
def check_username(name):
if name in os.listdir("/") + ["root", "home", "daemon", "system"]:
if name in os.listdir("/") + ["root", "home", "daemon", "system", "qubes"]:
return (False, _("User name is reserved for system: %s") % name)
if name.startswith("-"):