luks_format
This commit is contained in:
parent
04f64f68a8
commit
c641c95c0d
3 changed files with 5 additions and 5 deletions
2
sh/fs.sh
2
sh/fs.sh
|
@ -93,7 +93,7 @@ fs_wipe() {
|
|||
fi
|
||||
}
|
||||
|
||||
luks_format() {
|
||||
sh_fs_luks_format() {
|
||||
local passphrase="${1}"
|
||||
local device="${2}"
|
||||
local label="${3}"
|
||||
|
|
|
@ -92,7 +92,7 @@ rescue_wipe_0_init_hetzner_8_8() {
|
|||
fs_raid_create \
|
||||
"crypt" "00000000:00000000:00000000:00000001" ${members}
|
||||
# encrypt
|
||||
luks_format "${passphrase}" "/dev/md/crypt"
|
||||
sh_fs_luks_format "${passphrase}" "/dev/md/crypt"
|
||||
# open
|
||||
echo "${passphrase}" |
|
||||
cryptsetup luksOpen "/dev/md/crypt" "crypt"
|
||||
|
@ -107,7 +107,7 @@ rescue_wipe_2_make_hetzner_8_8() {
|
|||
# read passphrase
|
||||
passphrase="$(read_passphrase)"
|
||||
# encrypt
|
||||
luks_format "${passphrase}" "/dev/md/crypt"
|
||||
sh_fs_luks_format "${passphrase}" "/dev/md/crypt"
|
||||
# open
|
||||
echo "${passphrase}" |
|
||||
cryptsetup luksOpen "/dev/md/crypt" "crypt"
|
||||
|
|
|
@ -36,7 +36,7 @@ rescue_wipe_0_init_ovh_vle2() {
|
|||
# crypt / wipe
|
||||
fs_wipe "${device}1" "1G" 1
|
||||
# crypt / encrypt
|
||||
luks_format "${passphrase}" "${device}1"
|
||||
sh_fs_luks_format "${passphrase}" "${device}1"
|
||||
# crypt / open
|
||||
echo "${passphrase}" |
|
||||
cryptsetup luksOpen "${device}1" "crypt"
|
||||
|
@ -52,7 +52,7 @@ rescue_wipe_2_make_ovh_vle2() {
|
|||
# read passphrase
|
||||
passphrase="$(read_passphrase)"
|
||||
# crypt / encrypt
|
||||
luks_format "${passphrase}" "${device}1"
|
||||
sh_fs_luks_format "${passphrase}" "${device}1"
|
||||
# crypt / open
|
||||
echo "${passphrase}" |
|
||||
cryptsetup luksOpen "${device}1" "crypt"
|
||||
|
|
Loading…
Reference in a new issue