diff options
Diffstat (limited to 'util/format_crypto_partition.sh')
-rw-r--r-- | util/format_crypto_partition.sh | 6 |
1 files changed, 1 insertions, 5 deletions
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 - |