From 1e843d0ab14c64c77bfc49a15ff3e3e235341052 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 6 Oct 2020 09:07:24 +0200 Subject: explain --- perl-install/fs/dmcrypt.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/dmcrypt.pm b/perl-install/fs/dmcrypt.pm index c80f03112..a78a495d1 100644 --- a/perl-install/fs/dmcrypt.pm +++ b/perl-install/fs/dmcrypt.pm @@ -136,7 +136,8 @@ sub close_part { my $dm_part = fs::get::device2part("mapper/$part->{dm_name}", $dmcrypts); _run_or_die('luksClose', devices::make($dm_part->{device})); $part->{dm_active} = 0; - @$dmcrypts = grep { $_ != $dm_part } @$dmcrypts; + @$dmcrypts = grep { $_ != $dm_part } @$dmcrypts; + # remove partition from /etc/crypttab when deleted (mga#25891) substInFile { my ($name, $_dev) = split; undef $_ if $name eq $part->{dm_name}; -- cgit v1.2.1