summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/dmcrypt.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-10-06 09:06:34 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-10-14 18:02:42 +0200
commitca02b3e9e02b9bf8ec6906ff0509e6755d904b0a (patch)
tree56f972bb857f34113acbf2cbb620d5ba6d3a69b6 /perl-install/fs/dmcrypt.pm
parentd7b3b405ffe422417a786b6a0ccf39032598a983 (diff)
downloaddrakx-ca02b3e9e02b9bf8ec6906ff0509e6755d904b0a.tar
drakx-ca02b3e9e02b9bf8ec6906ff0509e6755d904b0a.tar.gz
drakx-ca02b3e9e02b9bf8ec6906ff0509e6755d904b0a.tar.bz2
drakx-ca02b3e9e02b9bf8ec6906ff0509e6755d904b0a.tar.xz
drakx-ca02b3e9e02b9bf8ec6906ff0509e6755d904b0a.zip
simplify
Diffstat (limited to 'perl-install/fs/dmcrypt.pm')
-rw-r--r--perl-install/fs/dmcrypt.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/fs/dmcrypt.pm b/perl-install/fs/dmcrypt.pm
index 21175c2de..c80f03112 100644
--- a/perl-install/fs/dmcrypt.pm
+++ b/perl-install/fs/dmcrypt.pm
@@ -139,9 +139,7 @@ sub close_part {
@$dmcrypts = grep { $_ != $dm_part } @$dmcrypts;
substInFile {
my ($name, $_dev) = split;
- if ($name eq $part->{dm_name}) {
- $_ = '';
- }
+ undef $_ if $name eq $part->{dm_name};
} _crypttab();
}