Skip to content

Commit f0159e1

Browse files
authored
Fixed root_password and users[superuser=True] check (#3312)
1 parent 1fbb21f commit f0159e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

archinstall/lib/global_menu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def check(s) -> bool:
223223
return item.has_value()
224224

225225
def has_superuser() -> bool:
226-
item = self._item_group.find_by_key('!users')
226+
item = self._item_group.find_by_key('users')
227227

228228
if item.has_value():
229229
users = item.value
@@ -234,8 +234,8 @@ def has_superuser() -> bool:
234234
missing = set()
235235

236236
for item in self._item_group.items:
237-
if item.key in ['!root-password', '!users']:
238-
if not check('!root-password') and not has_superuser():
237+
if item.key in ['root_password', 'users']:
238+
if not check('root_password') and not has_superuser():
239239
missing.add(
240240
str(_('Either root-password or at least 1 user with sudo privileges must be specified'))
241241
)

0 commit comments

Comments
 (0)