2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-16 09:31:10 +00:00

Fix RHEL7/CentOS7 netboot with BOOTIF

xcatroot ramroot setup did not correctly change BOOTIF to
match expectations.  Remove 01- and replace - with : to match
ip output
This commit is contained in:
jjohnson2
2015-02-06 14:21:17 -05:00
parent b19f8ea531
commit fa102ac8c6

View File

@@ -252,7 +252,9 @@ if [ -z $STATEMNT ]; then
MACX=`ip link show $netdev | grep ether | awk '{print $2}'`
elif [ ! -z "$BOOTIF" ]; then
MACX=$BOOTIF
ETHX=$(getdevfrommac $BOOTIF)
MACX=${MACX#01-}
MACX=${MACX//-/:}
ETHX=$(getdevfrommac $MACX)
fi
if [ ! -z "$MACX" ] && [ ! -z "$ETHX" ]; then