mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
readd dd to clear the device completetly!
This commit is contained in:
parent
c90d2e81e0
commit
f2eea30225
1 changed files with 2 additions and 0 deletions
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue