Forgot self. in Installer

This commit is contained in:
Anton Hvornum 2020-08-31 21:12:19 +02:00
parent 129f7f23fa
commit b91699c0e5
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ class Installer():
o = b''.join(sys_command(f'/usr/bin/arch-chroot {self.mountpoint} gpasswd -a {user} {group}'))
if sudo:
with open(f'{mountpoint}/etc/sudoers', 'a') as sudoers:
with open(f'{self.mountpoint}/etc/sudoers', 'a') as sudoers:
sudoers.write(f'{user}\n')
self.helper_flags['user'] = True

View File

@ -35,7 +35,7 @@ while 1:
new_user = input(new_user_text)
if len(new_user.strip()) == 0:
if len(root_pw.strip()) == 0:
archinstall.log(' * Since root is disabled, you need to create a least one user!', bg='black', fg='red')
archinstall.log(' * Since root is disabled, you need to create a least one (super) user!', bg='black', fg='red')
continue
break
new_user_passwd = getpass.getpass(prompt=f'Password for user {new_user}: ')