archlinux/archinstall

Archinstall crashed if using a partition scheme defined by hand - git version

FredBezies opened this issue · 2 comments

Which ISO version are you using?

2024-11-01

The installation log

Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: True
Processor model detected: AMD Ryzen 7 5700G with Radeon Graphics
Memory statistics: 7589348 available out of 8126144 total installed
Virtualization detected: kvm; is VM: True
Graphics devices detected: dict_keys(['Red Hat, Inc. Virtio 1.0 GPU (rev 01)'])
Disk states before installing: [
    "{\"name\":\"loop0\",\"path\":\"/dev/loop0\",\"pkname\":null,\"log_sec\":512,\"size\":\"812 MiB\",\"pttype\":null,\"ptuuid\":null,\"rota\":false,\"tran\":null,\"partn\":null,\"partuuid\":null,\"parttype\":null,\"uuid\":null,\"fstype\":\"squashfs\",\"fsver\":\"4.0\",\"fsavail\":0,\"fsuse_percentage\":\"100%\",\"type\":\"loop\",\"mountpoint\":\"/run/archiso/airootfs\",\"mountpoints\":[\"/run/archiso/airootfs\"],\"fsroots\":[\"/\"],\"children\":[]}",
    "{\"name\":\"sr0\",\"path\":\"/dev/sr0\",\"pkname\":null,\"log_sec\":2048,\"size\":\"1157 MiB\",\"pttype\":\"dos\",\"ptuuid\":\"077ddb99\",\"rota\":false,\"tran\":\"sata\",\"partn\":null,\"partuuid\":null,\"parttype\":null,\"uuid\":\"2024-11-20-12-48-24-00\",\"fstype\":\"iso9660\",\"fsver\":\"Joliet Extension\",\"fsavail\":0,\"fsuse_percentage\":\"100%\",\"type\":\"rom\",\"mountpoint\":\"/run/archiso/bootmnt\",\"mountpoints\":[\"/run/archiso/bootmnt\"],\"fsroots\":[\"/\"],\"children\":[]}",
    "{\"name\":\"vda\",\"path\":\"/dev/vda\",\"pkname\":null,\"log_sec\":512,\"size\":\"131072 MiB\",\"pttype\":null,\"ptuuid\":null,\"rota\":true,\"tran\":\"virtio\",\"partn\":null,\"partuuid\":null,\"parttype\":null,\"uuid\":null,\"fstype\":null,\"fsver\":null,\"fsavail\":null,\"fsuse_percentage\":null,\"type\":\"disk\",\"mountpoint\":null,\"mountpoints\":[],\"fsroots\":[],\"children\":[]}"
]
Hardware model detected: QEMU Standard PC (Q35 + ICH9, 2009); UEFI mode: True
Processor model detected: AMD Ryzen 7 5700G with Radeon Graphics
Memory statistics: 7589348 available out of 8126144 total installed
Virtualization detected: kvm; is VM: True
Graphics devices detected: dict_keys(['Red Hat, Inc. Virtio 1.0 GPU (rev 01)'])


### describe the problem

#### Description of the issue

It is in a way a followup of this bug: https://github.com/archlinux/archinstall/issues/2849

I was trying last git code in a qemu vm and I managed this partition scheme by hand:

/dev/vda1 ; 512 Mb ; /boot ; fat32
/dev/vda2 : 32 Gb ; / ; ext4
/dev/vda3 : 96 Gb ; /home ; ext4

Everything goes well during edition, but when the installer starts managing the partition, it crashed.

Error log: https://0x0.st/XnfN.log

Same error message as #2889

The log shows all three partitions have the same start value, the default start sector 34. This is not a valid configuration and is easily reproducible. A check should be added for invalid configurations to prevent proceeding with partitioning.

Agreed, ideally we should validate the if positions overlap and if they fit within the bounds of the disk(s), and take into account if we wipe/free up space