[Fai-commit] r3138 - trunk/bin

fai-repository at svn.debian.org fai-repository at svn.debian.org
Sat Dec 3 14:16:20 UTC 2005


Author: lange
Date: 2005-12-03 14:16:20 +0000 (Sat, 03 Dec 2005)
New Revision: 3138

Modified:
   trunk/bin/setup_harddisks
Log:
add workaround for udev behaviour: after creating a new partition
table it takes some time until the device entries in /dev are created


Modified: trunk/bin/setup_harddisks
===================================================================
--- trunk/bin/setup_harddisks	2005-12-03 13:33:28 UTC (rev 3137)
+++ trunk/bin/setup_harddisks	2005-12-03 14:16:20 UTC (rev 3138)
@@ -152,7 +152,7 @@
 # Variables
 #****************************************************
 
-my $Version = "version 0.36fai";
+my $Version = "version 0.37fai";
 
 my $megabyte = 1024 * 1024;    # guess
 # $gigabyte = 1024 * $megabyte;
@@ -758,6 +758,7 @@
             print "$command\n";
 	    $result = `sh -c "$command"`;
 	    (($? >> 8) == 0) || (die "\nSFDISK ERROR:\n $result\n");
+	    -f "/etc/init.d/udev" && sleep 10; # when using udev, it takes some time until the device entries for each partition are available
 	}
     }
 }




More information about the Fai-commit mailing list