From 9ae2f92117954eae8ce5a07889069631c48fb49a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 6 Sep 2004 08:28:03 +0000 Subject: - detect LVM2 - don't even check_md magic when we don't have the size of the device --- perl-install/fs/type.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/type.pm b/perl-install/fs/type.pm index 70ca967bf..0b361b8f2 100644 --- a/perl-install/fs/type.pm +++ b/perl-install/fs/type.pm @@ -250,6 +250,7 @@ sub set_type_subpart { my @partitions_signatures = ( + (map { [ 'Linux Logical Volume Manager', 0x200 * $_ + 0x18, "LVM2" ] } 0 .. 3), [ 'Linux Logical Volume Manager', 0, "HM\1\0" ], [ 'ext2', 0x438, "\x53\xEF" ], [ 'reiserfs', 0x10034, "ReIsErFs" ], @@ -292,7 +293,7 @@ sub type_subpart_from_magic { ''; }; my $t = typeFromMagic($dev, - $check_md, + if_($part->{size}, $check_md), @partitions_signatures) or return; my $p = type_name2subpart($t) || fs_type2subpart($t) || internal_error("unknown name/fs $t"); -- cgit v1.2.1