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 5d963f0fee
commit e15c2a7595

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