summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/fs/dmcrypt.pm6
2 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index fc68aedea..ec4516086 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- diskdrake: remove partition from /etc/crypttab when deleted (mga#25891)
+
Version 18.28 - 29 May 2020
- drakboot: don't die in write_grub2 if grub.cfg doesn't exist (mga#26676)
diff --git a/perl-install/fs/dmcrypt.pm b/perl-install/fs/dmcrypt.pm
index eddf669ef..21175c2de 100644
--- a/perl-install/fs/dmcrypt.pm
+++ b/perl-install/fs/dmcrypt.pm
@@ -137,6 +137,12 @@ sub close_part {
_run_or_die('luksClose', devices::make($dm_part->{device}));
$part->{dm_active} = 0;
@$dmcrypts = grep { $_ != $dm_part } @$dmcrypts;
+ substInFile {
+ my ($name, $_dev) = split;
+ if ($name eq $part->{dm_name}) {
+ $_ = '';
+ }
+ } _crypttab();
}
sub _run_or_die {