diff --git a/iso/installer.py b/iso/installer.py index 5aef89d..7e35402 100644 --- a/iso/installer.py +++ b/iso/installer.py @@ -1001,7 +1001,7 @@ class InstallerWindow(Adw.ApplicationWindow): run(["sudo", "chmod", "600", "/mnt/var/lib/secrets/free-password"]) proc = subprocess.run( - ["sudo", "chroot", "/mnt", "chpasswd"], + ["sudo", "nixos-enter", "--root", "/mnt", "--", "sh", "-c", "chpasswd"], input=f"free:{password}", capture_output=True, text=True )