[Fai-commit] r3274 - trunk/bin

fai-repository at svn.debian.org fai-repository at svn.debian.org
Wed Feb 15 12:24:27 UTC 2006


Author: lange
Date: 2006-02-15 12:24:26 +0000 (Wed, 15 Feb 2006)
New Revision: 3274

Modified:
   trunk/bin/setup_harddisks
Log:
fix mapping of disk (disk1 -> dlist[1])


Modified: trunk/bin/setup_harddisks
===================================================================
--- trunk/bin/setup_harddisks	2006-02-15 11:09:19 UTC (rev 3273)
+++ trunk/bin/setup_harddisks	2006-02-15 12:24:26 UTC (rev 3274)
@@ -339,6 +339,7 @@
 
   my ($disk) = @_;
   my @dlist = split /\s+/,$ENV{disklist};
+  unshift @dlist, "nodisk"; # add dummy element, so disk1 will be mapped to dlist[1]
 
   if ($disk =~ /disk(\d+)/) {
     my $n = $1;




More information about the Fai-commit mailing list