Merge pull request #116 from naturallaw777/copilot/fix-installer-password-error

Fix installer password step: replace bare chroot with nixos-enter
This commit is contained in:
Sovran_Systems
2026-04-07 10:49:31 -05:00
committed by GitHub

View File

@@ -1001,7 +1001,7 @@ class InstallerWindow(Adw.ApplicationWindow):
run(["sudo", "chmod", "600", "/mnt/var/lib/secrets/free-password"]) run(["sudo", "chmod", "600", "/mnt/var/lib/secrets/free-password"])
proc = subprocess.run( proc = subprocess.run(
["sudo", "chroot", "/mnt", "chpasswd"], ["sudo", "nixos-enter", "--root", "/mnt", "--", "sh", "-c", "chpasswd"],
input=f"free:{password}", input=f"free:{password}",
capture_output=True, text=True capture_output=True, text=True
) )