summaryrefslogtreecommitdiff
path: root/util/format_crypto_partition.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-12-22 14:37:59 +0100
committerxengineering <mail2xengineering@protonmail.com>2019-12-22 14:37:59 +0100
commitfc727bec9ca7c0ba1465bdd6b45ba262244191ab (patch)
tree145eda4ff427739bb1fb0632fed119dcff771a4e /util/format_crypto_partition.sh
parent0c9661f2d98f9464cc5d19eb5fac5cdc9fdc226b (diff)
downloadarchinstall-fc727bec9ca7c0ba1465bdd6b45ba262244191ab.tar
archinstall-fc727bec9ca7c0ba1465bdd6b45ba262244191ab.tar.zst
archinstall-fc727bec9ca7c0ba1465bdd6b45ba262244191ab.zip
Formatting and opening luks Partition works.
Diffstat (limited to 'util/format_crypto_partition.sh')
-rw-r--r--util/format_crypto_partition.sh6
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 -