luks_name
This commit is contained in:
parent
dc7d53f560
commit
20037ac9cb
3
config
3
config
@ -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
3
init
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user