summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-08-31 13:50:30 +0200
committerYour Name2018-08-31 13:50:30 +0200
commit6f1f2c8213ea028d2963f84191670a981e2236ba (patch)
tree2b407bde900928ba9636b2bb5dacd9963b4b9101
parent[rfs-stage32] setup_partitions: 4s timeout for udev settle (diff)
downloadmltk-6f1f2c8213ea028d2963f84191670a981e2236ba.tar.gz
mltk-6f1f2c8213ea028d2963f84191670a981e2236ba.tar.xz
mltk-6f1f2c8213ea028d2963f84191670a981e2236ba.zip
Get rid of fractional sleep calls
-rwxr-xr-xcore/modules/vmware12/data/opt/openslx/scripts/systemd-vmware_env2
-rwxr-xr-xcore/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/vmware12/data/opt/openslx/scripts/systemd-vmware_env b/core/modules/vmware12/data/opt/openslx/scripts/systemd-vmware_env
index e77f8632..b0249b38 100755
--- a/core/modules/vmware12/data/opt/openslx/scripts/systemd-vmware_env
+++ b/core/modules/vmware12/data/opt/openslx/scripts/systemd-vmware_env
@@ -115,7 +115,7 @@ case "$1" in
#stop: defines stop function for initscript
killall vmnet-netifup vmnet-bridge vmware vmplayer vmware-tray
# might take a while until all services are shut down
- sleep 0.5
+ sleep 1
unload_modules
;;
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
index c0ce1bc1..ca1585bb 100755
--- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
+++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions
@@ -119,9 +119,9 @@ mount_temp_fallback () {
}
udevadm trigger
-sleep 0.2
+usleep 20000 #20ms
udevadm settle --timeout 4
-sleep 0.2
+usleep 20000 #20ms
/opt/openslx/sbin/fdisk -l | grep '^/dev/' > "$PARTITION_FILE"
if [ ! -s "$PARTITION_FILE" ]; then