plymouth: hide lengthy disk name from passphrase prompt

This commit is contained in:
Marek Marczykowski-Górecki 2014-03-17 23:37:12 +01:00
parent b92cb75f8d
commit 73e6b65246

View File

@ -101,6 +101,9 @@ fun display_normal_callback ()
fun display_password_callback (prompt, bullets)
{
if (prompt.SubString(0,32) == "Please enter passphrase for disk") {
prompt = "Disk password";
}
global.status = "password";
if (!global.dialog)
dialog_setup(prompt);