[Fai-commit] r3599 -
people/michael/features/setup_harddisks_2/implementation
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Sat Jul 22 00:39:13 UTC 2006
Author: michael-guest
Date: 2006-07-22 00:39:12 +0000 (Sat, 22 Jul 2006)
New Revision: 3599
Modified:
people/michael/features/setup_harddisks_2/implementation/shdd2-sizes
Log:
Modified: people/michael/features/setup_harddisks_2/implementation/shdd2-sizes
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/shdd2-sizes 2006-07-22 00:37:57 UTC (rev 3598)
+++ people/michael/features/setup_harddisks_2/implementation/shdd2-sizes 2006-07-22 00:39:12 UTC (rev 3599)
@@ -72,18 +72,27 @@
{
if( $line =~ /^(\d+)*\s+(\d+)B\s+(\d+)B\s+(\d+)B/i )
{
- printf $1." ".$2." ".$3." ".$4."\n";
+
+ $FAI::current_config{ $disk }{ "partitions" }{ $1 } = {
+ "begin_byte" => $2;
+ "end_byte" => $3;
+ "count_byte" => $4;
+ };
}
-
+
if( $line =~ /^Disk geometry for.*(\d+)B - (\d+)B/i )
{
- printf $1." ".$2."\n";
+ $FAI::current_config{ $disk } = {
+ "begin_byte" => $1;
+ "end_byte" => $2;
+ }
}
- if( $line =~ /^Disk label type:\s*(\w*)\s*/i )
- {
- printf $1;
- }
+ # if( $line =~ /^Disk label type:\s*(\w*)\s*/i )
+ # {
+ #
+ # printf $1;
+ # }
}
}
@@ -96,13 +105,28 @@
if( $line =~ /^(\d+)\s+(\d+),(\d+),(\d+)\s+(\d+),(\d+),(\d+)/i )
{
- printf $1." ".$2." ".$3." ".$4." ".$5." ".$6." "."$7"."\n";
+ $FAI::current_config{ $disk }{ "partitions" }{ $1 } = {
+ "begin_cylinder" => $2;
+ "begin_head" => $3;
+ "begin_sector" => $4;
+ "end_cylinder" => $5;
+ "end_head" => $6;
+ "end_sector" => $7;
+ };
+
}
if( $line =~ /^Disk geometry for.*(\d+),(\d+),(\d+) - (\d+),(\d+),(\d+)/i )
{
- printf $1." ".$2." ".$3." ".$4." ".$5." ".$6."\n";
- }
+
+ $FAI::current_config{ $disk } = {
+ "begin_cylinder" => $1;
+ "begin_head" => $2;
+ "begin_sector" => $3;
+ "end_cylinder" => $4;
+ "end_head" => $5;
+ "end_sector" => $6;
+ }
}
}
}
More information about the Fai-commit
mailing list