Autoinstall with storage-version 2 should guess unspecified offsets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity (Ubuntu) |
Fix Committed
|
Medium
|
Olivier Gayot |
Bug Description
When storage-version is 2, the following autoinstall excerpt produces an exception and the install fails.
```
- type: disk
ptable: gpt
wipe: superblock-
path: /dev/sda
id: disk-1
- type: partition
number: 1
flag: boot
device: disk-1
size: 1G
wipe: superblock
id: partition-boot
- type: partition
number: 2
device: disk-1
size: -1
wipe: superblock
id: partition-root
```
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
Full traceback: https:/
Changed in subiquity (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in subiquity (Ubuntu): | |
assignee: | nobody → Olivier Gayot (ogayot) |
status: | Triaged → In Progress |
description: | updated |
Changed in subiquity (Ubuntu): | |
status: | In Progress → Fix Committed |
After doing more tests, it seems that the error only occurs when there is a size: -1 somewhere. Somehow, find_disk_parts_v2 never gets called if all partitions have a size specified, so it reduces the impact.