summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2019-04-14 18:26:51 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2019-04-16 22:03:27 +0100
commitd128632c137c19334a278ff105abe25dab993b44 (patch)
tree078c725a882ddfaf83a026febb25f022831dbc27 /perl-install/diskdrake/interactive.pm
parentb88059ae766fef0af8cd8d5ed3e9e6ab566cb6b7 (diff)
downloaddrakx-d128632c137c19334a278ff105abe25dab993b44.tar
drakx-d128632c137c19334a278ff105abe25dab993b44.tar.gz
drakx-d128632c137c19334a278ff105abe25dab993b44.tar.bz2
drakx-d128632c137c19334a278ff105abe25dab993b44.tar.xz
drakx-d128632c137c19334a278ff105abe25dab993b44.zip
Fix resizing of encrypted partitions (mga#22032)
When performing a lossy resize, we must make sure luksOpen is called *after* the partition table has been written and the kernel has been informed of the new size. The simplest fix is to write the partition table at the time the user requests the resize, as we already do for a lossless resize.
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-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 7521e8685..0b1ed6b44 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -860,7 +860,7 @@ sub Resize {
partition_table::will_tell_kernel($hd, resize => $low_part);
partition_table::adjust_local_extended($hd, $low_part);
partition_table::adjust_main_extended($hd);
- write_partitions($in, $hd) or return if $write_partitions && %nice_resize;
+ write_partitions($in, $hd) or return if $write_partitions && (%nice_resize || isLUKS($part));
if ($write_partitions && isLUKS($part)) {
require fs::dmcrypt;
fs::dmcrypt::open_part([], $low_part);