From d65193d7d39785e4c3ef983eb0ddf0f7b431e7af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 15:17:54 +0000 Subject: [PATCH 1/2] Initial plan From cf098454312854e912a0712067235ff1d17258e8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 15:18:54 +0000 Subject: [PATCH 2/2] Fix disko command: use single format,mount call since disks are pre-wiped Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/80b0e65c-24c9-4448-9fdb-870891ecc30e Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- iso/installer.py | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/iso/installer.py b/iso/installer.py index 3934caa..0c9488c 100644 --- a/iso/installer.py +++ b/iso/installer.py @@ -728,27 +728,18 @@ class InstallerWindow(Adw.ApplicationWindow): # Short settle so the kernel finishes re-reading time.sleep(2) - # ── Now run disko on a clean disk ── - GLib.idle_add(append_text, buf, "\n=== Partitioning drives ===\n") - cmd_destroy = [ - "sudo", "disko", "--mode", "destroy", - "--yes-wipe-all-disks", - f"{FLAKE}/iso/disko.nix", - "--arg", "device", boot_path - ] - if data_path: - 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 = [ + # ── Now run disko to partition, format, and mount ── + # Disks are already wiped clean by sgdisk/wipefs above, + # so we only need disko to create partitions, format, and mount. + GLib.idle_add(append_text, buf, "\n=== Partitioning and formatting drives ===\n") + cmd = [ "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) + cmd += ["--arg", "dataDevice", data_path] + run_stream(cmd, buf) GLib.idle_add(append_text, buf, "\n=== Generating hardware config ===\n") run_stream(["sudo", "nixos-generate-config", "--root", "/mnt"], buf)