Comment 20 for bug 1869075

Revision history for this message
Ryan Harper (raharper) wrote :

Thanks. That helps. The storage config has changed slightly, so curtin will need to adapt to this as well:

Previously we had a single wipe: superblock-recursive on the type:disk entry, nothing on the partitions.

Now, the config puts wipe on the disks/parts that are used:

  - {ptable: gpt, serial: 36005076306ffd6b60000000000002601, wwn: '0x6005076306ffd6b60000000000002601',
    multipath: '[orphan]', path: /dev/sdb, wipe: superblock, preserve: false, name: '',
    grub_device: false, type: disk, id: disk-sdb}
  - {device: disk-sdb, size: 1073741824, wipe: superblock, flag: '', number: 1, preserve: false,
    type: partition, id: partition-0}
  - {fstype: ext4, volume: partition-0, preserve: false, type: format, id: format-0}
  - {device: disk-sdb, size: 67643637760, wipe: superblock, flag: '', number: 2, preserve: false,
    type: partition, id: partition-1}

Then curtin trips up over trying to wipe "/dev/sdb2" which is is a multipath partition (we should be wiping /dev/dm-X instead.

Let's fix up this scenario as well.