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
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

Loading…
Cancel
Save