Skip to content

Commit

Permalink
Do not create root password
Browse files Browse the repository at this point in the history
  • Loading branch information
pkgdemon committed Jan 13, 2024
1 parent 3b208c6 commit e8aa661
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions installer/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@ def user():
"""
Creates the users and groups.
"""
# Set root password
subprocess.run(["chroot", MNT, "echo", f"root:{PASSWORD}", "|", "chpasswd"], check=True)

# Add user and set password
subprocess.run(["chroot", MNT, "useradd", "-m", "-g", "users", "-G", "wheel", USERNAME], check=True)
subprocess.run(["chroot", MNT, "echo", f"{USERNAME}:{PASSWORD}", "|", "chpasswd"], check=True)
Expand Down

0 comments on commit e8aa661

Please sign in to comment.