opensuse-bootstrap/makeluks.sh
Georg Pfuetzenreuter 15042704b9
Init
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2022-11-29 12:27:06 +01:00

13 lines
307 B
Bash
Executable File

#!/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