From e15c2a75950eb2c443f25439092c432e7dc594e4 Mon Sep 17 00:00:00 2001 From: jjohnson2 Date: Fri, 6 Feb 2015 14:21:17 -0500 Subject: [PATCH] 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 --- xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot index feed0dcd3..a85207dfd 100755 --- a/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot +++ b/xCAT-server/share/xcat/netboot/rh/dracut_033/xcatroot @@ -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