summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-02 15:34:31 +0100
committerSimon Rettberg2024-02-02 15:34:31 +0100
commitc257e992dec5a51d13cf9dc84d0a8a573557403b (patch)
tree92707fe320d47da9e1bc360e9939b92969a1f76f
parent[vbox-src] Add progress output, skip udev reload with MaxiLinux (diff)
downloadmltk-c257e992dec5a51d13cf9dc84d0a8a573557403b.tar.gz
mltk-c257e992dec5a51d13cf9dc84d0a8a573557403b.tar.xz
mltk-c257e992dec5a51d13cf9dc84d0a8a573557403b.zip
[dnbd3-proxy-mode] local proxy: Skip last iteration of forced switch
This looks ugly in systemd-analyze plot - the service takes forever. The remaining aproaches should be enough to cover the bootup process - if we need something more permanent, dnbd3 should be extended to forbid switching unless the server is actually unreachable.
-rwxr-xr-xcore/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage42
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4 b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4
index 0afa7a26..d5f0e62d 100755
--- a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4
+++ b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4
@@ -18,7 +18,7 @@ if [ -d "/mnt/dnbd3" ] && [ -b /dev/dnbd0 ] \
# local dnbd3 proxy replies slower than some upstream server on the
# network, which is not that unlikely if the data is not cached
# locally yet.
- for i in 1 2 4 8 16 32 64 128; do
+ for i in 1 2 4 8 16 32 64; do
dnbd3-client -s "127.0.0.1:$DNBD3_PORT" -d /dev/dnbd0 &> /dev/null
usleep ${i}00000 # tenths of a second
done