[Fai-commit] r6493 - trunk/lib/setup-storage
Michael Tautschnig
mt at alioth.debian.org
Mon Apr 18 23:21:28 UTC 2011
Author: mt
Date: 2011-04-18 23:21:27 +0000 (Mon, 18 Apr 2011)
New Revision: 6493
Modified:
trunk/lib/setup-storage/Sizes.pm
Log:
setup-storage/Sizes.pm: Apply alignment constraints to start of first partition
Modified: trunk/lib/setup-storage/Sizes.pm
===================================================================
--- trunk/lib/setup-storage/Sizes.pm 2011-04-18 16:57:47 UTC (rev 6492)
+++ trunk/lib/setup-storage/Sizes.pm 2011-04-18 23:21:27 UTC (rev 6493)
@@ -451,6 +451,9 @@
($next_start <= $current_disk->{partitions}->{$part_id}->{begin_byte})
or die "Cannot preserve start byte of ntfs volume on partition $part_id, space before it is too small\n";
$next_start = $current_disk->{partitions}->{$part_id}->{begin_byte};
+ } else {
+ $next_start += $block_size - ($next_start % $block_size)
+ unless (0 == ($next_start % $block_size));
}
$FAI::configs{$config}{partitions}{$part_id}{start_byte} =
More information about the Fai-commit
mailing list