Browse Source

plymouth/cryptroot-ask.sh: beautify password prompt

master
Harald Hoyer 15 years ago
parent
commit
08e10f05f6
  1. 4
      modules.d/50plymouth/cryptroot-ask.sh

4
modules.d/50plymouth/cryptroot-ask.sh

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

Loading…
Cancel
Save