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:
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user