Here you can find two small bash scripts, one called wipe-all
which removes all partitions without caring about raid or lvm.
The other script is called partition.WIPEDISKS is a FAI hooks and
first stops lvm and raid then does the wipefs call.

https://fai-project.org/download/misc/

Antwort per Email an