Set partition type when clearing partition contents
Formatting a partition to cleared over the top of LVM2 PV leaves the "lvm" flag set on the partition; where as formatting with an actual file system over the top of an LVM2 PV clears the "lvm" flag. This is true for both on both MSDOS and GPT partitioned drives.