[Fai-commit] r6384 - trunk/lib/setup-storage

Michael Tautschnig mt at alioth.debian.org
Fri Apr 15 11:21:23 UTC 2011


Author: mt
Date: 2011-04-15 11:21:21 +0000 (Fri, 15 Apr 2011)
New Revision: 6384

Modified:
   trunk/lib/setup-storage/Commands.pm
   trunk/lib/setup-storage/Exec.pm
   trunk/lib/setup-storage/Volumes.pm
Log:
setup-storage: Revert incomplete $FAI::DATADIR use to $ENV{LOGDIR}


Modified: trunk/lib/setup-storage/Commands.pm
===================================================================
--- trunk/lib/setup-storage/Commands.pm	2011-04-15 11:16:11 UTC (rev 6383)
+++ trunk/lib/setup-storage/Commands.pm	2011-04-15 11:21:21 UTC (rev 6384)
@@ -277,7 +277,7 @@
 sub build_raid_commands {
 
   # check RAID arrays if there are pre-existing ones
-  &FAI::push_command("mdadm --assemble --scan --config=$FAI::DATADIR/mdadm-from-examine.conf",
+  &FAI::push_command("mdadm --assemble --scan --config=$ENV{LOGDIR}/mdadm-from-examine.conf",
     "", "mdadm_startall_examined") if (scalar(keys %FAI::current_raid_config));
   foreach my $id (keys %FAI::current_raid_config) {
     my $md = "/dev/md$id";

Modified: trunk/lib/setup-storage/Exec.pm
===================================================================
--- trunk/lib/setup-storage/Exec.pm	2011-04-15 11:16:11 UTC (rev 6383)
+++ trunk/lib/setup-storage/Exec.pm	2011-04-15 11:21:21 UTC (rev 6384)
@@ -182,7 +182,7 @@
     message      => "mdadm tried to assemble arrays but failed, ignoring as arrays might be running already\n",
     stderr_regex => '^$',
     stdout_regex => '^$',
-    program      => "mdadm --assemble --scan --config=$FAI::DATADIR/mdadm-from-examine.conf",
+    program      => "mdadm --assemble --scan --config=$ENV{LOGDIR}/mdadm-from-examine.conf",
     response     => "warn",
     exit_codes   => [2],
   },

Modified: trunk/lib/setup-storage/Volumes.pm
===================================================================
--- trunk/lib/setup-storage/Volumes.pm	2011-04-15 11:16:11 UTC (rev 6383)
+++ trunk/lib/setup-storage/Volumes.pm	2011-04-15 11:21:21 UTC (rev 6384)
@@ -459,7 +459,7 @@
 #    devices=/dev/sde3,/dev/sdf3,/dev/sdd3
 
   # create a temporary mdadm-from-examine.conf
-  open(MDADM_EX, ">$FAI::DATADIR/mdadm-from-examine.conf");
+  open(MDADM_EX, ">$ENV{LOGDIR}/mdadm-from-examine.conf");
 
   # the id of the RAID
   my $id;




More information about the Fai-commit mailing list