summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2011-02-14 14:27:51 +0000
committerAntoine Ginies <aginies@mandriva.com>2011-02-14 14:27:51 +0000
commit5e17e08dbbb889005ac09745b3b15a6d7d4076f5 (patch)
tree1e244669c8b5b1f6a6fabdc15279f7397315d121 /perl-install
parent715e22c1e42a7be3082b324c283b595393454f73 (diff)
downloaddrakx-5e17e08dbbb889005ac09745b3b15a6d7d4076f5.tar
drakx-5e17e08dbbb889005ac09745b3b15a6d7d4076f5.tar.gz
drakx-5e17e08dbbb889005ac09745b3b15a6d7d4076f5.tar.bz2
drakx-5e17e08dbbb889005ac09745b3b15a6d7d4076f5.tar.xz
drakx-5e17e08dbbb889005ac09745b3b15a6d7d4076f5.zip
disable encrypted option if /boot /usr / or /var
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/diskdrake/interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index e5e2090a7..f2f1c6cab 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -504,7 +504,7 @@ sub Create {
if_($::expert && isLVM($hd),
{ label => N("Logical volume name "), val => \$part->{lv_name}, list => [ qw(root swap usr home var), '' ], sort => 0, not_edit => 0 },
),
- { label => N("Encrypt partition"), type => 'bool', val => \$use_dmcrypt },
+ { label => N("Encrypt partition"), type => 'bool', val => \$use_dmcrypt, disabled => sub { member($part->{mntpoint}, qw(/ /usr /var /boot)); } },
{ label => N("Encryption key "), val => \$part->{dmcrypt_key}, disabled => sub { !$use_dmcrypt }, hidden => 1, weakness_check => 1 },
{ label => N("Encryption key (again)"), val => \$part->{dmcrypt_key2}, disabled => sub { !$use_dmcrypt }, hidden => 1 },
], complete => sub {