|
|
@ -68,13 +68,13 @@ unset LUKS luks luuid |
|
|
|
if [ $ask -gt 0 ]; then |
|
|
|
if [ $ask -gt 0 ]; then |
|
|
|
info "luksOpen $device $luksname" |
|
|
|
info "luksOpen $device $luksname" |
|
|
|
if [ $num -eq 1 ]; then |
|
|
|
if [ $num -eq 1 ]; then |
|
|
|
prompt="Password:" |
|
|
|
prompt="Password for filesystem" |
|
|
|
else |
|
|
|
else |
|
|
|
prompt="Password [$device ($luksname)]:" |
|
|
|
prompt="Password [$device ($luksname)]:" |
|
|
|
if [ ${#luksname} -gt 8 ]; then |
|
|
|
if [ ${#luksname} -gt 8 ]; then |
|
|
|
sluksname=${sluksname##luks-} |
|
|
|
sluksname=${sluksname##luks-} |
|
|
|
sluksname=${luksname%%${luksname##????????}} |
|
|
|
sluksname=${luksname%%${luksname##????????}} |
|
|
|
prompt="Password [$device ($sluksname...)]:" |
|
|
|
prompt="Password for $device ($sluksname...)" |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
# flock against other interactive activities |
|
|
|
# flock against other interactive activities |
|
|
|