From 429fded33a34ff63e37af5c32aa5f7f9b38e052c Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 23 Jun 2020 20:46:55 +0000 Subject: diskdrake: fix a crash on whole disk filesystems (mga#26849) When a disk has a filesystem directly without a partition table, libparted tells us the partition table is of type loop and we don't have code to handle that, causing a crash: Can't locate partition_table/loop.pm in @INC (you may need to install the partition_table::loop module) (@INC contains: /usr/lib/libDrakX /usr/local/lib64/perl5 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/lib/libDrakX/partition_table.pm line 287. Perl's trace: drakbug::bug_handler() called from /usr/lib/libDrakX/partition_table.pm:287 partition_table::initialize() called from /usr/lib/libDrakX/partition_table/raw.pm:227 partition_table::raw::zero_MBR() called from /usr/lib/libDrakX/fsedit.pm:265 fsedit::get_hds() called from /usr/libexec/diskdrake:74 We should probably be more generic and treat the same way any partition table type name we don't know rather than crashing. --- perl-install/NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/NEWS') 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 -- cgit v1.2.1