Remove exit condition because dd will always error in this case

This commit is contained in:
Price Hiller 2021-11-25 17:02:44 -06:00
parent 94279c1411
commit 7711a4c7bf

View File

@ -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