Setup-storage doesn't properly partition drives when % is used.

Michael Tautschnig mt at debian.org
Thu Jun 26 21:57:34 CEST 2008


[...]
> 
> I ran this configuration on two systems, with 500GB and 320GB disk
> drives, after installation completed, every system had 1% of physical
> volume free, the rest was used up by root and var partitions with a
> ratio of percentages I set in config file, so var partition became twice
> as big as root.
> 
> Is this a normal behaviour or am I doing something wrong?
>

Sorry, that was a bug - could you apply the attached patch to Sizes.pm and
retry?

Thanks a lot,
Michael

-------------- next part --------------
Index: Sizes.pm
===================================================================
--- Sizes.pm	(revision 4998)
+++ Sizes.pm	(working copy)
@@ -246,6 +246,7 @@
     my $redist_factor = 0;
     $redist_factor = ($vg_size - $min_space) / ($max_space - $min_space)
       if ($max_space > $min_space);
+    $redist_factor = 1.0 if ($redist_factor > 1.0);
 
     # update all sizes that are still ranges
     foreach my $lv (@redist_list) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20080626/c94a61e5/attachment.bin 


More information about the linux-fai mailing list