luks_name

This commit is contained in:
illiliti 2020-02-19 10:12:37 +03:00
parent dc7d53f560
commit 20037ac9cb
2 changed files with 4 additions and 2 deletions

3
config
View File

@ -62,6 +62,9 @@ luks=1
# LUKS encrypted root ( device,partuuid,uuid,label )
luks_root="PARTUUID=b04395be-f467-458b-8630-9a429b487600"
# luks mapper name ( /dev/mapper/<name>)
#luks_name=""
# LUKS detached header
#luks_header="/path/to/header"

3
init
View File

@ -82,8 +82,7 @@ findfs_sh() {
}
unlock_luks() {
# TODO improve mapper name ( crypttab or config option )
cryptsetup $luks_args luksOpen $(findfs_sh "$luks_root") luks_root || panic "failed to unlock luks container"
cryptsetup $luks_args luksOpen $(findfs_sh "$luks_root") ${luks_name:-luks_root} || panic "failed to unlock luks container"
}
trigger_lvm() {