From 265f34b8aa4b26a9f27094815c71a57a3c21dfe2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 05:06:55 +0000 Subject: [PATCH 1/2] Initial plan From 9664c595232b7257a0853b9f04893337ea09a9a8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 05:07:55 +0000 Subject: [PATCH 2/2] feat: enforce 128 GB minimum, skip data disk for Desktop Only role Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/2be6c138-feda-4c5d-9bd8-0e5f2f6416bc Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- iso/installer.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/iso/installer.py b/iso/installer.py index 89d2f2e..ccb09a9 100644 --- a/iso/installer.py +++ b/iso/installer.py @@ -501,8 +501,17 @@ class InstallerWindow(Adw.ApplicationWindow): self.boot_disk, self.boot_size = disks[0] self.data_disk, self.data_size = None, None + BYTES_128GB = 128 * 1024 ** 3 + if self.role == "Desktop Only" and self.boot_size < BYTES_128GB: + self.show_error( + f"Boot disk /dev/{self.boot_disk} is only " + f"{human_size(self.boot_size)}. " + f"The Desktop Only role requires at least 128 GB." + ) + return + BYTES_2TB = 2 * 1024 ** 4 - if len(disks) >= 2: + if self.role != "Desktop Only" and len(disks) >= 2: d, s = disks[-1] if s >= BYTES_2TB: self.data_disk, self.data_size = d, s @@ -528,7 +537,7 @@ class InstallerWindow(Adw.ApplicationWindow): data_row.set_subtitle(f"/dev/{self.data_disk} — {human_size(self.data_size)}") data_row.add_prefix(symbolic_icon("drive-harddisk-symbolic")) disk_group.add(data_row) - else: + elif self.role != "Desktop Only": no_row = Adw.ActionRow() no_row.set_title("Data Disk") no_row.set_subtitle("None detected (requires 2 TB or larger)")