From fc727bec9ca7c0ba1465bdd6b45ba262244191ab Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 22 Dec 2019 14:37:59 +0100 Subject: Formatting and opening luks Partition works. --- util/format_crypto_partition.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'util/format_crypto_partition.sh') diff --git a/util/format_crypto_partition.sh b/util/format_crypto_partition.sh index bde9a1e..97cdad4 100644 --- a/util/format_crypto_partition.sh +++ b/util/format_crypto_partition.sh @@ -22,8 +22,4 @@ main_partition_path=$1 DEFAULT_PASSWORD=$2 -cryptsetup luksFormat $main_partition_path << EOF -YES -$DEFAULT_PASSWORD -$DEFAULT_PASSWORD -EOF +echo -n "$DEFAULT_PASSWORD" | cryptsetup luksFormat $main_partition_path - -- cgit v1.2.3-70-g09d2