readd dd to clear the device completetly!

This commit is contained in:
Tobias Powalowski 2023-08-12 12:06:31 +02:00
parent c90d2e81e0
commit f2eea30225

View file

@ -287,6 +287,8 @@ _set_device_name_scheme() {
_clean_disk() {
# clear all magic strings/signatures - mdadm, lvm, partition tables etc
wipefs -a -f "${1}" &>"${_NO_LOG}"
# really clear everything MBR/GPT at the beginning!
dd if=/dev/zero of=${1} bs=1M count=10 &>"${_NO_LOG}"
partprobe "${1}" &>"${_NO_LOG}"
}