diff options
author | Simon Rettberg | 2018-08-31 13:50:30 +0200 |
---|---|---|
committer | Your Name | 2018-08-31 13:50:30 +0200 |
commit | 6f1f2c8213ea028d2963f84191670a981e2236ba (patch) | |
tree | 2b407bde900928ba9636b2bb5dacd9963b4b9101 | |
parent | [rfs-stage32] setup_partitions: 4s timeout for udev settle (diff) | |
download | mltk-6f1f2c8213ea028d2963f84191670a981e2236ba.tar.gz mltk-6f1f2c8213ea028d2963f84191670a981e2236ba.tar.xz mltk-6f1f2c8213ea028d2963f84191670a981e2236ba.zip |
Get rid of fractional sleep calls
-rwxr-xr-x | core/modules/vmware12/data/opt/openslx/scripts/systemd-vmware_env | 2 | ||||
-rwxr-xr-x | core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions | 4 |
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 |