Description
Installation fails because active LVM partitions are overwritten and result in a problematic system state, which can either happen when the disk is specified explicitly or when the -s flag searches for the smallest unmounted partition but does not take LVM into account.
Impact
Either a reboot to retry installation is needed, or before running flatcar-install, a manual removal of active LVM partitions (something like lvchange -an /dev/mapper/vg*).
Environment and steps to reproduce
- Set-up: Boot via PXE on a system that has LVM partitions on the smallest disk. Check that Flatcar already activated the LVM partitions (entries under
/dev/mapper/)
- Task: run
flatcar-install -s
- Error: installation fails
Expected behavior
The -s flag in general should become aware of active LVM partitions and filter them like mounts are filtered. However, to not offload the LVM deactivation to the user, a new flag --remove-lvm should allow to deactivate LVM all partitions before even running the -s filtering logic.
Additional information
Also partly tracked in #249 coreos/bugs#152 #120
Description
Installation fails because active LVM partitions are overwritten and result in a problematic system state, which can either happen when the disk is specified explicitly or when the
-sflag searches for the smallest unmounted partition but does not take LVM into account.Impact
Either a reboot to retry installation is needed, or before running
flatcar-install, a manual removal of active LVM partitions (something likelvchange -an /dev/mapper/vg*).Environment and steps to reproduce
/dev/mapper/)flatcar-install -sExpected behavior
The
-sflag in general should become aware of active LVM partitions and filter them like mounts are filtered. However, to not offload the LVM deactivation to the user, a new flag--remove-lvmshould allow to deactivate LVM all partitions before even running the-sfiltering logic.Additional information
Also partly tracked in #249 coreos/bugs#152 #120