summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-05-08 13:21:52 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-05-08 13:52:52 +0000
commitdd983bcf451f63ef9c4478fbc53411a578dee06c (patch)
tree1ce460e4fe223f94d310c2625090f1c437dcb5e0 /lib
parentReleasing version 20220505. (diff)
downloadcompute-tools-dd983bcf451f63ef9c4478fbc53411a578dee06c.tar.xz
compute-tools-dd983bcf451f63ef9c4478fbc53411a578dee06c.zip
Correcting off-by-one error when warning about too long veth interface names in container start commend.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/start4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/container/start b/libexec/container/start
index 1b53628..de6bd84 100755
--- a/libexec/container/start
+++ b/libexec/container/start
@@ -369,7 +369,7 @@ then
NETWORK_VETH_EXTRA="${NETWORK_VETH_EXTRA} --network-veth-extra=${VETH}"
INTERFACE="$(echo ${VETH} | awk -F: '{ print $1 }')"
- if [ "$(echo ${INTERFACE} | wc -c)" -gt 15 ]
+ if [ "$(echo ${INTERFACE} | wc -c)" -gt 16 ]
then
echo "'${INTERFACE}': name exceeds maximum of 15 characters, network might be not working."
fi
@@ -389,7 +389,7 @@ then
INTERFACE="$(echo ${BRIDGE_DEFINITION} | awk -F: '{ print $1 }')"
BRIDGE="$(echo ${BRIDGE_DEFINITION} | awk -F: '{ print $2 }')"
- if [ "$(echo ${INTERFACE} | wc -c)" -gt 15 ]
+ if [ "$(echo ${INTERFACE} | wc -c)" -gt 16 ]
then
echo "'${INTERFACE}': name exceeds maximum of 15 characters, network might be not working."
fi