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:
parent
5d963f0fee
commit
e15c2a7595
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user