Otherwise there is no way to skip pasword prompt. --has-active-vt
seems to correctly catch also the case when plymouthd is started
but splash is disabled.
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
rmdir "$mntp"
unset mntp keypath keydev
else
- # Prompt for password with plymouth, if installed.
- # Should we check if plymouthd is running?
- if [ -x /bin/plymouth ]; then
+ # Prompt for password with plymouth, if installed and running.
+ if [ -x /bin/plymouth ] && /bin/plymouth --has-active-vt; then
prompt="Password [$device ($luksname)]:"
if [ ${#luksname} -gt 8 ]; then
sluksname=${sluksname##luks-}