From 4561fd9755523cb115b93c0721087e236df0958c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 11 Aug 2018 19:51:20 -0400 Subject: [PATCH] Have SLE15 bring up bootnic normally in stateless --- .../xcat/netboot/sle/dracut_033/xcat-prepivot.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/sle/dracut_033/xcat-prepivot.sh b/xCAT-server/share/xcat/netboot/sle/dracut_033/xcat-prepivot.sh index b5114ef43..039990ab4 100755 --- a/xCAT-server/share/xcat/netboot/sle/dracut_033/xcat-prepivot.sh +++ b/xCAT-server/share/xcat/netboot/sle/dracut_033/xcat-prepivot.sh @@ -134,15 +134,11 @@ function getdevfrommac() { done } -for lf in /tmp/dhclient.*.lease; do - netif=${lf#*.} - netif=${netif%.*} - cp $lf "$NEWROOT/var/lib/dhclient/dhclient-$netif.leases" -done - -if [ -f $NEWROOT/etc/hostname ]; then - echo `hostname -s` > $NEWROOT/etc/hostname -fi +bootif=$(ls /tmp/net.*.conf|sed -e s/.*net\.// -e s/\.conf//) +cat < $NEWROOT/etc/sysconfig/network/ifcfg-$bootif +BOOTPROTO='dhcp' +STARTMODE='auto' +EOF if [ ! -z "$ifname" ]; then MACX=${ifname#*:}