Add back "Passphrase for (dev):" prompt.

This commit is contained in:
Milan Broz
2017-06-28 15:07:58 +02:00
parent 29681c0aa7
commit c80acbe4c8
3 changed files with 16 additions and 11 deletions

View File

@@ -2650,8 +2650,12 @@ const char *crypt_get_uuid(struct crypt_device *cd)
const char *crypt_get_device_name(struct crypt_device *cd)
{
const char *path = device_block_path(cd->device);
const char *path;
if (!cd)
return NULL;
path = device_block_path(cd->device);
if (!path)
path = device_path(cd->device);