Remove exit condition because dd will always error in this case
This commit is contained in:
parent
94279c1411
commit
7711a4c7bf
@ -244,7 +244,7 @@ install() {
|
|||||||
log "info" "Wiped partitions on $(important "${install_disk}")"
|
log "info" "Wiped partitions on $(important "${install_disk}")"
|
||||||
log "info" "Securely erasing remaining data on $(important "${install_disk}")"
|
log "info" "Securely erasing remaining data on $(important "${install_disk}")"
|
||||||
echo YES | cryptsetup open --type plain -d /dev/urandom "${install_path}" to_be_wiped > /dev/null || exit
|
echo YES | cryptsetup open --type plain -d /dev/urandom "${install_path}" to_be_wiped > /dev/null || exit
|
||||||
dd bs=1M if=/dev/zero of=/dev/mapper/to_be_wiped status=progress || exit
|
dd bs=1M if=/dev/zero of=/dev/mapper/to_be_wiped status=progress
|
||||||
cryptsetup close to_be_wiped || exit
|
cryptsetup close to_be_wiped || exit
|
||||||
log "info" "Writing new partitions to $(important "${install_disk}")"
|
log "info" "Writing new partitions to $(important "${install_disk}")"
|
||||||
(echo n
|
(echo n
|
||||||
|
Loading…
Reference in New Issue
Block a user