diff options
author | Jonathan Bauer | 2018-03-07 14:32:42 +0100 |
---|---|---|
committer | Jonathan Bauer | 2018-03-07 14:32:42 +0100 |
commit | a71b6e6094da382245afb624648f5c9971821879 (patch) | |
tree | ec569d88fad580df59c32c2b899d7b29a74d938b | |
parent | add mkfs.xfs and fsck.xfs to dnbd3-rootfs binaries (diff) | |
download | systemd-init-a71b6e6094da382245afb624648f5c9971821879.tar.gz systemd-init-a71b6e6094da382245afb624648f5c9971821879.tar.xz systemd-init-a71b6e6094da382245afb624648f5c9971821879.zip |
[ib-conf] fix boot interface name
use boot interface name from /run/openslx/pxe-network.conf instead of
hardcoded :)
-rwxr-xr-x | builder/modules.d/ib-conf/scripts/gen-ib-conf.sh | 4 |
1 files changed, 3 insertions, 1 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 2d4b7a27..f0bd2c7c 100755 --- a/builder/modules.d/ib-conf/scripts/gen-ib-conf.sh +++ b/builder/modules.d/ib-conf/scripts/gen-ib-conf.sh @@ -2,8 +2,10 @@ type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh +. "/run/openslx/pxe-network.conf" + IPSUFFIX=$( - ip -4 -o addr show dev bootnet | \ + ip -4 -o addr show dev "${SLX_PXE_NETIF}" | \ awk '{split($4,a,"/");split(a[1],b,".");print b[3]"."b[4]}' ) |