fix: accept intentional error while overwriting disk

master
phga 3 years ago
parent 18ad23da7b
commit ee3c15829d
Signed by: phga
GPG Key ID: 5249548AA705F019

@ -37,9 +37,11 @@ init() {
} }
crypt_prepare_disk() { crypt_prepare_disk() {
set +e
cryptsetup open --type plain -d /dev/urandom $1 wipe_me cryptsetup open --type plain -d /dev/urandom $1 wipe_me
dd if=/dev/zero of=/dev/mapper/wipe_me bs=1M status=progress dd if=/dev/zero of=/dev/mapper/wipe_me bs=1M status=progress
cryptsetup close wipe_me cryptsetup close wipe_me
set -e
} }
crypt_create_fs() { crypt_create_fs() {

Loading…
Cancel
Save