I decided to take a variation of your patch, with following changes:
* call update-dev --settle, instead of doing waits
* call vgdisplay to give LVM a kick (same as partman-lvm/init.d/ does)
* and call device_remove_lvm loop in a separate loop, in case creating partitions fails for some reason
I will attach a patch here for testing in a moment.
@ Philip Hands (phil-hands)
I decided to take a variation of your patch, with following changes:
* call update-dev --settle, instead of doing waits
* call vgdisplay to give LVM a kick (same as partman-lvm/init.d/ does)
* and call device_remove_lvm loop in a separate loop, in case creating partitions fails for some reason
I will attach a patch here for testing in a moment.