Compare commits

3 Commits

Author SHA1 Message Date
Sovran_Systems
18a6e8d24c Merge pull request #116 from naturallaw777/copilot/fix-installer-password-error
Fix installer password step: replace bare chroot with nixos-enter
2026-04-07 10:49:31 -05:00
copilot-swe-agent[bot]
7a172c0306 Fix chpasswd not found by using nixos-enter instead of bare chroot
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/1bb103de-c4a5-4701-b1b8-6aad670b97c3

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
2026-04-07 15:45:30 +00:00
copilot-swe-agent[bot]
7fc04fcf20 Initial plan 2026-04-07 15:44:31 +00:00

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
) )