~mwhudson/curtin:even-more-unmounting-tweaks

Last commit made on 2021-08-06
Get this branch:
git clone -b even-more-unmounting-tweaks 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:
even-more-unmounting-tweaks
Repository:
lp:~mwhudson/curtin

Recent commits

916c338... by Michael Hudson-Doyle

more wordsmithing

fbe90ad... by Michael Hudson-Doyle

grammmmeeer

686ef9e... by Michael Hudson-Doyle

extend essay even more

bed091e... by Michael Hudson-Doyle

updates

d9e9119... by Michael Hudson-Doyle

do not read /proc/mounts twice

d294821... by Michael Hudson-Doyle

tweak making mountpoints private some more

My recent change to move the making of mountpoints private into
do_umount actually made them less robust, because the "making private"
needs to be down on higher level mount points first, but the actual
unmounting needs to be done bottom up. So do all the making private
first in a different loop.

8d8687f... by Michael Hudson-Doyle

curthooks: do not unconditionally copy e/n/interfaces to target

When I tried to install a more-minimal server image using curtin, it
failed in copy_interfaces because the image did not have an /etc/network
directory at all (full ubuntu-server images have this directory because
ethtool installs files in there). Fix this by shuffling around how the
$state_dir/interfaces file is handled a bit: basically it used to always
be created by the install commmand and then updated by the net-meta
command. Change this to have the file only be created by net-meta, then
curthooks can copy it if and only if it exists.

49626ef... by Lukas Märdian

block: handle /dev/mapper/* in dev_path()

Fixes LP: #1895192

3673687... by Michael Hudson-Doyle

curthooks: do not add lvm devices filter when / is mutipathed

This code was added to defend against lvcreate seeing multiple paths to
a PV but the relevant udev rules already protect against this, and the
devices filter prevents assembling a VG containing an encrypted volume.

LP: #1895192

c06ee5f... by Dan Bungert

Extend the 'format' schema for unknown fstypes

Permit arbitrary fstype values if preserve == true
Goal here is to enumerate more filesystem formats, ones that blkid
recognizes, but not claim in any way that we can create them.
This is useful for presenting existing filesystem partitions to users
in an installer, as otherwise they just get unhelpfully marked as
'unknown'.