~mwhudson/curtin:mdadm-check-container

Last commit made on 2021-05-10
Get this branch:
git clone -b mdadm-check-container https://git.launchpad.net/~mwhudson/curtin
Only Michael Hudson-Doyle can upload to this branch. If you are Michael Hudson-Doyle please log in for upload directions.

Branch merges

Branch information

Name:
mdadm-check-container
Repository:
lp:~mwhudson/curtin

Recent commits

12f5d09... by Michael Hudson-Doyle

log failures a bit more clearly as per review

8604c3e... by Michael Hudson-Doyle

do not check the array state for a container

maybe we should assert that it is "inactive" which is what it seems to be?

b527f76... by Michael Hudson-Doyle

realpath MD_CONTAINER before comparing it to passed container

f85b0cf... by Michael Hudson-Doyle

fix verifying a raid0 array (which has no degraded or sync_action attributes)

ad4b25a... by Michael Hudson-Doyle

block_meta: make preserve: true on a raid in a container work

Pass any supplied container name to raid_verify and on to md_check and
check it against the existing device.

Also tidy up a few other things in the raid verification code path: make
checking functions consistently raise ValueError on failure rather than
returning True / False and have the verification of raid level actually
check the level of the existing array.

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