[Fai-commit] r5249 - people/michael/experimental/patches
mt at alioth.debian.org
mt at alioth.debian.org
Sat Feb 7 16:40:51 UTC 2009
Author: mt
Date: 2009-02-07 16:40:51 +0000 (Sat, 07 Feb 2009)
New Revision: 5249
Modified:
people/michael/experimental/patches/setup-storage_force-disklabel
Log:
parted_print is used earlier, I shouldn't have moved that down
Modified: people/michael/experimental/patches/setup-storage_force-disklabel
===================================================================
--- people/michael/experimental/patches/setup-storage_force-disklabel 2009-02-06 21:31:13 UTC (rev 5248)
+++ people/michael/experimental/patches/setup-storage_force-disklabel 2009-02-07 16:40:51 UTC (rev 5249)
@@ -64,7 +64,7 @@
===================================================================
--- trunk.orig/lib/setup-storage/Volumes.pm
+++ trunk/lib/setup-storage/Volumes.pm
-@@ -51,36 +51,33 @@
+@@ -51,10 +51,6 @@
# make sure, $disk is a proper block device
(-b $disk) or die "$disk is not a block special device!\n";
@@ -72,10 +72,10 @@
-
- # initialise the hash
- $FAI::current_config{$disk}{partitions} = {};
--
-- # the list to hold the output of parted commands as parsed below
-- my @parted_print = ();
+ # the list to hold the output of parted commands as parsed below
+ my @parted_print = ();
+@@ -62,25 +58,29 @@
# try to obtain the partition table for $disk
# it might fail with parted_2 in case the disk has no partition table
my $error =
@@ -120,7 +120,7 @@
# retry partition-table print
$error =
&FAI::execute_ro_command("parted -s $disk unit TiB print", \@parted_print, 0);
-@@ -88,6 +85,16 @@
+@@ -88,6 +88,13 @@
($error eq "") or die "Failed to read the partition table from $disk\n";
@@ -130,10 +130,7 @@
+ # initialise the hash
+ $FAI::current_config{$disk}{partitions} = {};
+
-+ # the list to hold the output of parted commands as parsed below
-+ my @parted_print = ();
+
-+
# the following code parses the output of parted print, using various units
# (TiB, B, chs)
# the parser is capable of reading the output of parted version 1.7.1, which
More information about the Fai-commit
mailing list