Finished luks setup

This commit is contained in:
2020-05-20 12:47:30 +02:00
parent 76f1a35a46
commit a03a4adc96
4 changed files with 33 additions and 23 deletions

View File

@@ -82,6 +82,17 @@ set_device_path(){
error
}
overwritte_device_with_zeros(){
question "Should $device_path be overwritten with zeros before copying?(y/N)" && read -r copy_zeros_to_device
if [ "$copy_zeros_to_device" = "y" ]
then
info "Overwritting..." &&
dd if=/dev/zero of="$device_path" bs="$OPTIMAL_BLOCKSIZE" status=progress || error "Overwritting $device_path failed."
else
info "Skipping Overwritting..."
fi
}
HEADER(){
echo
echo "${COLOR_YELLOW}The"