From 4ba199e6863ad0619651fb9540f763e1ab970102 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 24 Sep 2007 07:09:02 +0000 Subject: - ignore /proc/partitions when "solaris" extended partition is present (#33866) --- perl-install/fs/proc_partitions.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/fs/proc_partitions.pm') diff --git a/perl-install/fs/proc_partitions.pm b/perl-install/fs/proc_partitions.pm index 291c3bc25..c0fc8efc4 100644 --- a/perl-install/fs/proc_partitions.pm +++ b/perl-install/fs/proc_partitions.pm @@ -54,9 +54,13 @@ sub compare { my ($len1, $len2) = (int(@l1) + $hd->{primary}{nb_special_empty}, int(@l2)); if ($len1 != $len2) { - die sprintf( + if (find { $_->{pt_type} == 0xbf } @l1) { + log::l("not using /proc/partitions because of the presence of solaris extended partition"); #- cf #33866 + } else { + die sprintf( "/proc/partitions does not agree with drakx %d != %d:\n%s\n", $len1, $len2, "/proc/partitions: " . join(", ", map { "$_->{device} ($_->{rootDevice})" } @l2)); + } } $len2; } -- cgit v1.2.1