summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/partition_table.pm2
2 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 1886709dd..8250fdc7c 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -6,6 +6,8 @@ Version 18.31 - 18 June 2020
- drakboot: add option to install GRUB2 bootloader in \EFI\BOOT (mga#24282)
- diskdrake: remove partition from /etc/crypttab when deleted (mga#25891)
+- diskdrake: fix a crash when a disk has a filesystem directly without a
+ partition table (mga#26849)
Version 18.28 - 29 May 2020
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 6ab40174b..4d77c3cd4 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -264,6 +264,8 @@ sub _get_disk_type {
my ($hd) = @_;
my $current = c::get_disk_type($hd->{file});
$current = 'dos' if $current eq 'msdos';
+ # When a disk contains a FS directly (no partition table) parted calls it loop
+ $current = '' if $current eq 'loop';
$hd->{current_pt_table_type} = $current;
}