diskimage-builder/diskimage_builder/block_device
Andreas Florath f5736f3178 block-device lvm: fix umount phase
As described in blockdevice.py detachment and (most) resources
release must be done in the umount phase of a block device module.

Until now these jobs were done in the lvm cleanup() phase - which
is too late - especially when using nested LVMs.

This patch moves the functionality of the cleanup() phase to the
umount() phase for the lvm module.
It includes a test case that fails without applying the provided
source code changes.

Change-Id: I697bfbf042816c5ddf170bde9534cc4f0c7279ff
Signed-off-by: Andreas Florath <andreas@florath.net>
2018-06-28 15:21:59 +10:00
..
level0 Move rollback into NodeBase object 2017-06-08 17:14:20 +10:00
level1 block-device lvm: fix umount phase 2018-06-28 15:21:59 +10:00
level2 Convert labels to upper case 2018-06-19 11:12:54 +02:00
level3 Don't fstrim vfat partitions 2018-01-23 13:24:09 +11:00
level4 Move rollback into NodeBase object 2017-06-08 17:14:20 +10:00
tests block-device lvm: fix umount phase 2018-06-28 15:21:59 +10:00
__init__.py Clear __init__.py from cmd move 2017-05-11 18:52:14 +10:00
blockdevice.py Set default label for XFS disks 2018-01-29 15:10:08 +11:00
cmd.py Refactor: use lazy logging 2017-05-30 14:39:58 +10:00
config.py Remove redundant word 2018-06-19 18:00:11 +08:00
exception.py Move exception to it's own file (again) 2017-05-20 06:44:39 +00:00
plugin.py Move rollback into NodeBase object 2017-06-08 17:14:20 +10:00
utils.py Refactor mount-point sorting 2017-05-31 11:05:50 +10:00