summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-04-22 13:49:47 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-04-22 13:49:47 +0000
commitc2efef6d2f38a15bb0828c13b2171d17c44784b2 (patch)
tree07daa591c26e6fd9ae09bd7623249e97c837fd5e /perl-install/diskdrake/interactive.pm
parentab5751caddec8551008b80000ca23c892f6a1f16 (diff)
downloaddrakx-c2efef6d2f38a15bb0828c13b2171d17c44784b2.tar
drakx-c2efef6d2f38a15bb0828c13b2171d17c44784b2.tar.gz
drakx-c2efef6d2f38a15bb0828c13b2171d17c44784b2.tar.bz2
drakx-c2efef6d2f38a15bb0828c13b2171d17c44784b2.tar.xz
drakx-c2efef6d2f38a15bb0828c13b2171d17c44784b2.zip
Unify "Encrypted" display
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index e3bdb402c..13dd760b0 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -1372,10 +1372,13 @@ sub format_part_info {
$info .= N("Not formatted\n") if !$part->{isFormatted} && $part->{notFormatted};
$info .= N("Mounted\n") if $part->{isMounted};
$info .= N("RAID %s\n", $part->{raid}) if isPartOfRAID($part);
- if (fs::type::isRawLUKS($part)) {
- $info .= N("Encrypted") . ($part->{dm_active} && $part->{dm_name} ? N(" (mapped on %s)", $part->{dm_name}) :
- $part->{dm_name} ? N(" (to map on %s)", $part->{dm_name}) :
- N(" (inactive)")) . "\n";
+ if (fs::type::isRawLUKS($part) || $part->{dmcrypt_name}) {
+ $info .= N("Encrypted");
+ if (fs::type::isRawLUKS($part)) {
+ $info .= ($part->{dm_active} && $part->{dm_name} ? N(" (mapped on %s)", $part->{dm_name}) :
+ $part->{dm_name} ? N(" (to map on %s)", $part->{dm_name}) :
+ N(" (inactive)")) . "\n";
+ }
}
if (isPartOfLVM($part)) {
$info .= sprintf "LVM %s\n", $part->{lvm};