diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-10-06 09:07:24 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2020-10-14 18:02:46 +0200 |
commit | 1e843d0ab14c64c77bfc49a15ff3e3e235341052 (patch) | |
tree | 18b5c3591af8b827a3da5b781cd0a8a4f578997f /perl-install/fs/dmcrypt.pm | |
parent | ca02b3e9e02b9bf8ec6906ff0509e6755d904b0a (diff) | |
download | drakx-1e843d0ab14c64c77bfc49a15ff3e3e235341052.tar drakx-1e843d0ab14c64c77bfc49a15ff3e3e235341052.tar.gz drakx-1e843d0ab14c64c77bfc49a15ff3e3e235341052.tar.bz2 drakx-1e843d0ab14c64c77bfc49a15ff3e3e235341052.tar.xz drakx-1e843d0ab14c64c77bfc49a15ff3e3e235341052.zip |
explain
Diffstat (limited to 'perl-install/fs/dmcrypt.pm')
-rw-r--r-- | perl-install/fs/dmcrypt.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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}; |