[Fai-commit] r4624 - people/michael/features/setup_harddisks_2/implementation
michael-guest at alioth.debian.org
michael-guest at alioth.debian.org
Tue Oct 16 07:07:07 UTC 2007
Author: michael-guest
Date: 2007-10-16 07:07:07 +0000 (Tue, 16 Oct 2007)
New Revision: 4624
Modified:
people/michael/features/setup_harddisks_2/implementation/shdd2-commands
Log:
replaced sleep by udevsettle, which is more appropriate
Modified: people/michael/features/setup_harddisks_2/implementation/shdd2-commands
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/shdd2-commands 2007-10-15 09:07:05 UTC (rev 4623)
+++ people/michael/features/setup_harddisks_2/implementation/shdd2-commands 2007-10-16 07:07:07 UTC (rev 4624)
@@ -132,8 +132,8 @@
"$FAI::system_commands{'parted'} $disk set "
. $part_no . " raid on";
}
- # sleep a little to wait for udev to set up all devices
- push @FAI::commands, "sleep 1";
+ # wait for udev to set up all devices
+ push @FAI::commands, "udevsettle --timeout=10";
# create the command
push @FAI::commands,
@@ -208,8 +208,8 @@
"$FAI::system_commands{'parted'} $disk set "
. $part_no . " lvm on";
}
- # sleep a little to wait for udev to set up all devices
- push @FAI::commands, "sleep 1";
+ # wait for udev to set up all devices
+ push @FAI::commands, "udevsettle --timeout=10";
# create the volume group, if it doesn't exist already
if ( !defined( $FAI::current_lvm_config{$vg} ) )
@@ -653,8 +653,8 @@
. " boot on"
if ( $FAI::configs{$config}{"bootable"} > -1 );
- # sleep a little to wait for udev to set up all devices
- push @FAI::commands, "sleep 1";
+ # wait for udev to set up all devices
+ push @FAI::commands, "udevsettle --timeout=10";
}
# generate the commands for creating all filesystems
More information about the Fai-commit
mailing list