From 24423b40146abe73fb49ca2dbf332fd3ed541ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Sun, 17 Aug 2025 11:25:50 -0700 Subject: [PATCH 1/2] PartitioningView: add new crash case --- src/Views/PartitioningView.vala | 68 +++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/src/Views/PartitioningView.vala b/src/Views/PartitioningView.vala index 1f2e9abe7..19613cb75 100644 --- a/src/Views/PartitioningView.vala +++ b/src/Views/PartitioningView.vala @@ -589,6 +589,74 @@ public class Installer.PartitioningView : AbstractInstallerView { partitions = {partitions_13, partitions_14} }; + var partitions_15 = InstallerDaemon.Partition () { + device_path = "/dev/vda1", + filesystem = InstallerDaemon.FileSystem.FAT32, + start_sector = 4096, + end_sector = 542966, + sectors_used = InstallerDaemon.PartitionUsage () { + tag = 1, + value = 35160 + }, + current_lvm_volume_group = "" + }; + + var partitions_16 = InstallerDaemon.Partition () { + device_path = "/dev/vda2", + filesystem = InstallerDaemon.FileSystem.LVM, + start_sector = 542968, + end_sector = 13421363, + sectors_used = InstallerDaemon.PartitionUsage () { + tag = 0, + value = 0 + }, + current_lvm_volume_group = "data" + }; + + physical_disks += InstallerDaemon.Disk () { + name = "Virtio Block Device", + device_path = "/dev/vda", + sectors = 134217728, + sector_size = 512, + rotational = true, + removable = false, + partitions = {partitions_15, partitions_16} + }; + + var partitions_17 = InstallerDaemon.Partition () { + device_path = "/dev/dm-0", + filesystem = InstallerDaemon.FileSystem.EXT4, + start_sector = 0, + end_sector = 125665280, + sectors_used = InstallerDaemon.PartitionUsage () { + tag = 1, + value = 21085648 + }, + current_lvm_volume_group = "" + }; + + var partitions_18 = InstallerDaemon.Partition () { + device_path = "/dev/dm-1", + filesystem = InstallerDaemon.FileSystem.SWAP, + start_sector = 12566528, + end_sector = 133660673, + sectors_used = InstallerDaemon.PartitionUsage () { + tag = 0, + value = 0 + }, + current_lvm_volume_group = "" + }; + + logical_disks += InstallerDaemon.Disk () { + name = "LVM data", + device_path = "/dev/mapper/data", + sectors = 133670662, + sector_size = 512, + rotational = false, + removable = false, + partitions = {partitions_13, partitions_14} + }; + return InstallerDaemon.DiskInfo () { physical_disks = physical_disks, logical_disks = logical_disks From 758d782bdea4e0ba78a6b293fec8767215de5d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 12 Nov 2025 11:56:30 -0800 Subject: [PATCH 2/2] Update src/Views/PartitioningView.vala Co-authored-by: Leo --- src/Views/PartitioningView.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/PartitioningView.vala b/src/Views/PartitioningView.vala index 19613cb75..ac1c53f07 100644 --- a/src/Views/PartitioningView.vala +++ b/src/Views/PartitioningView.vala @@ -654,7 +654,7 @@ public class Installer.PartitioningView : AbstractInstallerView { sector_size = 512, rotational = false, removable = false, - partitions = {partitions_13, partitions_14} + partitions = {partitions_17, partitions_18} }; return InstallerDaemon.DiskInfo () {