summaryrefslogtreecommitdiffstats
path: root/perl-install/lvm.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-02-09 13:52:48 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-02-09 13:52:48 +0000
commita91bcf5a79edb4a653f3114d55f508eb00615cb2 (patch)
tree31af0dc17cd6e28d0b88e9adb255d07eede13e59 /perl-install/lvm.pm
parent0f58e6576e982f11a429fc6b8b5110c7c0a7e2f8 (diff)
downloaddrakx-a91bcf5a79edb4a653f3114d55f508eb00615cb2.tar
drakx-a91bcf5a79edb4a653f3114d55f508eb00615cb2.tar.gz
drakx-a91bcf5a79edb4a653f3114d55f508eb00615cb2.tar.bz2
drakx-a91bcf5a79edb4a653f3114d55f508eb00615cb2.tar.xz
drakx-a91bcf5a79edb4a653f3114d55f508eb00615cb2.zip
partitioning_wizard: fix a crash on empty disks and enable back lvm
Diffstat (limited to 'perl-install/lvm.pm')
-rw-r--r--perl-install/lvm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/lvm.pm b/perl-install/lvm.pm
index 3205fa2fd..15fbe554a 100644
--- a/perl-install/lvm.pm
+++ b/perl-install/lvm.pm
@@ -17,7 +17,7 @@ sub new {
my ($class, $name) = @_;
$name =~ s/[^\w-]/_/g;
$name = substr($name, 0, 63); # max length must be < NAME_LEN / 2 where NAME_LEN is 128
- bless { disks => [], VG_name => $name }, $class;
+ bless { disks => [], VG_name => $name, device => $name }, $class;
}
sub use_pt_type { 0 }
sub hasExtended { 0 }