~dbungert/curtin:lp-1925722-v2

Last commit made on 2021-04-29
Get this branch:
git clone -b lp-1925722-v2 https://git.launchpad.net/~dbungert/curtin
Only Dan Bungert can upload to this branch. If you are Dan Bungert please log in for upload directions.

Branch merges

Branch information

Name:
lp-1925722-v2
Repository:
lp:~dbungert/curtin

Recent commits

90d0b86... by Dan Bungert

Remove unused mock function

90b35f7... by Dan Bungert

Add unittest covering the dd simple multi disk case

bb8deac... by Dan Bungert

Debug log on the ValueError

8db8e83... by Dan Bungert

Fix for grub_device based detection of target

* grub_device means we mean to image THAT device, so we shouldn't keep
  the entire list of devices as plausible image targets.

(Thanks to Ryan Harper and Lee Trager for good discussions and fix
 proposals)

d49d35b... by Dan Bungert

Use /proc/filesystems to decide passno

The 'nodev' is intended to indicate
"whether the file system is mounted on a block device"
https://red.ht/3toGT5b

Use this info to set nodev items to passno 0, and default to 1 for
non-nodev or if the filesystem isn't present there.
Except that /proc/filesystems doesn't list 'swap' or 'none', so special
case those to passno 0.

LP: #1717584, LP: #1785354

1ff27dd... by Michael Hudson-Doyle

block_meta: fix wiping of existing dasd partition

The partition verification code does not need the part_path variable in
this case but the partition wiping code does.

87aa64b... by Michael Hudson-Doyle

block_meta: pass --yes to lvcreate alongside --wipesignatures=y

Otherwise it will not actually wipe the signatures it finds.

LP: #1923487

4339a49... by Michael Hudson-Doyle

remove 'strict' arguments to block.wipe_volume and block.quick_zero

It was only passed by clear_holders._wipe_superblock and clear_holders
is all best effort anyway.

in particular, this should fix failures seen in subiquity error reports
when wiping very small (<1M) partitions.

LP: #1868177

c204635... by Michael Hudson-Doyle

swap: use dd to allocate swapfiles on ext2 and ext3

LP: #1918990

e113b05... by Michael Hudson-Doyle

storage_config: return one type: disk action per multipathed disk

Currently extract_storage_config returns one type: disk action
for every member of a multipathed disk and type: partition
actions for each partition of each disk. This works by generating
a type: disk action for each disk and ignoring the block device
data for the /dev/dm-X device for the multipathed disk.

But in groovy+, the udev rule from multipath-tools that has
always attempted to remove the devices nodes for the partitions
of a disk that is a multipath member actually succeeds, and
trying to generate a type: partition action for a partition with
no underlying device node makes things blow up.

Instead, this branch generates type: disk and type: partitions
actions from the /dev/dm-X nodes for the mutipathed disk and its
partitions, and ignores and disks and partitions that are members
of a multipathed disk.

LP: #1893818