From b378305286563e7102f833f22f2bb3e4f420f629 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 24 Aug 2020 11:07:40 -0600 Subject: [PATCH] link executor: don't try to modprobe in mock mode --- executor-scripts/linux/link | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/executor-scripts/linux/link b/executor-scripts/linux/link index c0d8b51..2aa78f9 100755 --- a/executor-scripts/linux/link +++ b/executor-scripts/linux/link @@ -45,11 +45,11 @@ pre-up|post-down) echo "Device $IF_VLAN_RAW_DEVICE for $IFACE does not exist" exit 1 fi - fi - if ! [ -d /proc/net/vlan ]; then - echo "Loading 8021q kernel module for VLAN support" - ${MOCK} modprobe 8021q + if ! [ -d /proc/net/vlan ]; then + echo "Loading 8021q kernel module for VLAN support" + ${MOCK} modprobe 8021q + fi fi ${MOCK} ip link $ADD_DEL link "$IF_VLAN_RAW_DEVICE" name "$IFACE" type vlan id "$IF_VLAN_ID"