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

@@ -214,14 +214,7 @@ question "Should the image be transfered to $device_path?(y/n)" && read -r trans
if [ "$transfer_image" = "y" ]
then
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
overwritte_device_with_zeros
info "Starting image transfer..."
if [ "$os" = "arch" ]