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>
This commit is contained in:
committed by
GitHub
parent
7fc04fcf20
commit
7a172c0306
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user