summaryrefslogtreecommitdiff
path: root/util/format_crypto_partition.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-01-09 10:52:52 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-01-09 10:52:52 +0100
commit3839b0df19ed779f19defa7bb113c4930e15b745 (patch)
tree4f5c75dcc52336237fc3f728c332c5f1d52b8904 /util/format_crypto_partition.sh
parentcd5cf703c4ef5f99787f407b122738e087fbfc36 (diff)
parent457c01bfcd6346b8a06420d721fa02a216cea9bf (diff)
downloadarchinstall-3839b0df19ed779f19defa7bb113c4930e15b745.tar
archinstall-3839b0df19ed779f19defa7bb113c4930e15b745.tar.zst
archinstall-3839b0df19ed779f19defa7bb113c4930e15b745.zip
Merge branch 'feature_luks' into devel
Diffstat (limited to 'util/format_crypto_partition.sh')
-rw-r--r--util/format_crypto_partition.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/util/format_crypto_partition.sh b/util/format_crypto_partition.sh
new file mode 100644
index 0000000..688e280
--- /dev/null
+++ b/util/format_crypto_partition.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+
+# archinstall - A minimal Installation Script for Arch Linux
+# Copyright (C) 2019 xengineering
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+
+main_partition_path=$1
+DEFAULT_PASSWORD=$2
+
+
+echo -n "$DEFAULT_PASSWORD" | cryptsetup luksFormat $main_partition_path -
+
+echo "Formatted crypto partition - OK"