[Fai-commit] r4851 - people/michael/features/setup_harddisks_2/implementation/lib

mt at alioth.debian.org mt at alioth.debian.org
Fri Mar 21 07:37:32 UTC 2008


Author: mt
Date: 2008-03-21 07:37:31 +0000 (Fri, 21 Mar 2008)
New Revision: 4851

Modified:
   people/michael/features/setup_harddisks_2/implementation/lib/parser.pm
Log:
another bugfix in case virtual configs have more than 4 primary partitions


Modified: people/michael/features/setup_harddisks_2/implementation/lib/parser.pm
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/lib/parser.pm	2008-03-13 21:01:20 UTC (rev 4850)
+++ people/michael/features/setup_harddisks_2/implementation/lib/parser.pm	2008-03-21 07:37:31 UTC (rev 4851)
@@ -153,7 +153,7 @@
       defined ($FAI::configs{$FAI::device}{partitions}{$part_id}{size}{extended}) or last;
 
       # on msdos disklabels we cannot have more than 4 primary partitions
-      last if ($part_id > 4
+      last if ($part_id > 4 && ! $FAI::configs{$FAI::device}{virtual}
         && $FAI::configs{$FAI::device}{disklabel} eq "msdos");
 
       # store the latest index found




More information about the Fai-commit mailing list