From 37b3a377dc1b5926edca18860abd09890b328e7e Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 27 Apr 2009 15:25:10 +0000 Subject: don't crash when creating a partition in LVM with the partition type buttons (#38078) --- perl-install/NEWS | 2 ++ perl-install/diskdrake/hd_gtk.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-install/NEWS b/perl-install/NEWS index 72713ef26..2e04745a1 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -9,6 +9,8 @@ o allow LVM in non expert mode o allow Encrypted partition inside LVM o allow creating partition starting after 1TB + o don't crash when creating a partition in LVM with the partition type + buttons (#38078) Version 11.71.8 - 25 February 2009 diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index a6a904589..526a7f279 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} =~ /hd|lvm/ or die 'current_hd called but $current_kind is not an hd'; $current_kind->{val}; } sub current_part() { -- cgit v1.2.1