summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/ib-conf
diff options
context:
space:
mode:
Diffstat (limited to 'builder/modules.d/ib-conf')
-rwxr-xr-xbuilder/modules.d/ib-conf/scripts/gen-ib-conf.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder/modules.d/ib-conf/scripts/gen-ib-conf.sh b/builder/modules.d/ib-conf/scripts/gen-ib-conf.sh
index f0bd2c7c..b168ce06 100755
--- a/builder/modules.d/ib-conf/scripts/gen-ib-conf.sh
+++ b/builder/modules.d/ib-conf/scripts/gen-ib-conf.sh
@@ -4,6 +4,9 @@ type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh
. "/run/openslx/pxe-network.conf"
+# get the IP from the VLAN device if a VLAN is configured
+[ -n "${SLX_VLAN_ID}" ] && SLX_PXE_NETIF="${SLX_PXE_NETIF}.${SLX_VLAN_ID}"
+
IPSUFFIX=$(
ip -4 -o addr show dev "${SLX_PXE_NETIF}" | \
awk '{split($4,a,"/");split(a[1],b,".");print b[3]"."b[4]}'