From 33f1402f943036dbdf81bf12ded852c8eba91fd9 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 10 Mar 2009 10:16:36 +0000 Subject: diskdrake: don't crash when creating a partition in LVM with the partition type buttons (#38078) --- perl-install/diskdrake/hd_gtk.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/diskdrake/hd_gtk.pm') diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index b52d3f98f..a29adca79 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -357,7 +357,7 @@ sub create_buttons4partitions { # disks: helpers ################################################################################ sub current_hd() { - $current_kind->{type} eq 'hd' or die 'current_hd called but $current_kind is not an hd ('.$current_kind->{type}.')'; + $current_kind->{type} =~ /hd|lvm/ or die 'current_hd called but $current_kind is not an hd ('.$current_kind->{type}.')'; $current_kind->{val}; } sub current_part() { -- cgit v1.2.1