From 15042704b931e02b4dbcfcee1d0dab586c4c16ef Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Tue, 29 Nov 2022 12:27:06 +0100 Subject: Init Signed-off-by: Georg Pfuetzenreuter --- makeluks.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 makeluks.sh (limited to 'makeluks.sh') diff --git a/makeluks.sh b/makeluks.sh new file mode 100755 index 0000000..e8ffdb0 --- /dev/null +++ b/makeluks.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -Ceux + +partswap="${1}3" +partroot="${1}4" +lukspass="$2" + +echo "$lukspass" | cryptsetup -q luksFormat "$partswap" +echo "$lukspass" | cryptsetup -q luksFormat "$partroot" + +echo "$lukspass" | cryptsetup -q luksOpen "$partswap" cr_swap +echo "$lukspass" | cryptsetup -q luksOpen "$partroot" cr_root -- cgit v1.2.3