From 5b1454adf6e2eaf84299445f6ebd8359c1c06e4c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 13:36:15 +0000 Subject: [PATCH] Fix three installer blockers: disko --yes-wipe-all-disks, stdin=DEVNULL, nixos-install --no-root-password Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/477c45ee-0958-4ba8-9612-a3be1bff9c6d Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- iso/installer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iso/installer.py b/iso/installer.py index 1ab7c17..c8ab00e 100644 --- a/iso/installer.py +++ b/iso/installer.py @@ -38,7 +38,8 @@ def run(cmd): def run_stream(cmd, buf): log(f"$ {' '.join(cmd)}") - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) + proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, + stdin=subprocess.DEVNULL, text=True) for line in proc.stdout: log(line.rstrip()) GLib.idle_add(append_text, buf, line) @@ -731,6 +732,7 @@ class InstallerWindow(Adw.ApplicationWindow): GLib.idle_add(append_text, buf, "\n=== Partitioning drives ===\n") cmd = [ "sudo", "disko", "--mode", "destroy,format,mount", + "--yes-wipe-all-disks", f"{FLAKE}/iso/disko.nix", "--arg", "device", boot_path ] @@ -848,7 +850,8 @@ class InstallerWindow(Adw.ApplicationWindow): run_stream([ "sudo", "nixos-install", "--root", "/mnt", - "--flake", "/mnt/etc/nixos#nixos" + "--flake", "/mnt/etc/nixos#nixos", + "--no-root-password" ], buf) GLib.idle_add(self.push_complete)