diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-04-27 15:25:10 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-04-27 15:25:10 +0000 |
commit | 37b3a377dc1b5926edca18860abd09890b328e7e (patch) | |
tree | 450e5d90420befbee73515051db4b746e742d75f | |
parent | 54888cd7752fec9f82501f07f93a583bbdaed87b (diff) | |
download | drakx-backup-do-not-use-37b3a377dc1b5926edca18860abd09890b328e7e.tar drakx-backup-do-not-use-37b3a377dc1b5926edca18860abd09890b328e7e.tar.gz drakx-backup-do-not-use-37b3a377dc1b5926edca18860abd09890b328e7e.tar.bz2 drakx-backup-do-not-use-37b3a377dc1b5926edca18860abd09890b328e7e.tar.xz drakx-backup-do-not-use-37b3a377dc1b5926edca18860abd09890b328e7e.zip |
don't crash when creating a partition in LVM with the partition type buttons (#38078)
-rw-r--r-- | perl-install/NEWS | 2 | ||||
-rw-r--r-- | perl-install/diskdrake/hd_gtk.pm | 2 |
2 files changed, 3 insertions, 1 deletions
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() { |