From fee6035de0dde951faa7fc85f6bc2f796f9dba68 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 14:40:22 +0000 Subject: [PATCH 1/2] Initial plan From ca275c45de2ff5514df6634c3768c99e19037efb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 14:41:16 +0000 Subject: [PATCH 2/2] Fix disko mount failure by splitting destroy and format,mount into separate calls Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/0f9fe8d2-554e-4048-9dba-5a3c3c663410 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- iso/installer.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/iso/installer.py b/iso/installer.py index c8ab00e..3934caa 100644 --- a/iso/installer.py +++ b/iso/installer.py @@ -730,15 +730,25 @@ class InstallerWindow(Adw.ApplicationWindow): # ── Now run disko on a clean disk ── GLib.idle_add(append_text, buf, "\n=== Partitioning drives ===\n") - cmd = [ - "sudo", "disko", "--mode", "destroy,format,mount", + cmd_destroy = [ + "sudo", "disko", "--mode", "destroy", "--yes-wipe-all-disks", f"{FLAKE}/iso/disko.nix", "--arg", "device", boot_path ] if data_path: - cmd += ["--arg", "dataDevice", data_path] - run_stream(cmd, buf) + cmd_destroy += ["--arg", "dataDevice", data_path] + run_stream(cmd_destroy, buf) + + GLib.idle_add(append_text, buf, "\n=== Formatting and mounting drives ===\n") + cmd_format = [ + "sudo", "disko", "--mode", "format,mount", + f"{FLAKE}/iso/disko.nix", + "--arg", "device", boot_path + ] + if data_path: + cmd_format += ["--arg", "dataDevice", data_path] + run_stream(cmd_format, buf) GLib.idle_add(append_text, buf, "\n=== Generating hardware config ===\n") run_stream(["sudo", "nixos-generate-config", "--root", "/mnt"], buf)