*: refactor
Documentation will be rewritten and added later.
This commit is contained in:
15
hook/luks/luks.init
Normal file
15
hook/luks/luks.init
Normal file
@ -0,0 +1,15 @@
|
||||
# vim: set ft=sh:
|
||||
# shellcheck shell=sh
|
||||
#
|
||||
# https://shellcheck.net/wiki/SC2154
|
||||
# shellcheck disable=2154
|
||||
|
||||
mkdir -p /run/cryptsetup
|
||||
|
||||
resolve_device "$luks_root"
|
||||
|
||||
DM_DISABLE_UDEV=1 cryptsetup open \
|
||||
${luks_discard:+--allow-discards} \
|
||||
${luks_header:+--header="$luks_header"} \
|
||||
${luks_key:+--key-file="$luks_key"} -- "$device" \
|
||||
"${luks_name:-crypt-${device##*/}}" || panic "failed to unlock LUKS"
|
Reference in New Issue
Block a user