2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-07 02:38:15 +00:00

Have SLE15 bring up bootnic normally in stateless

This commit is contained in:
Jarrod Johnson
2018-08-11 19:51:20 -04:00
parent 1baa668632
commit 4561fd9755

View File

@@ -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 <<EOF > $NEWROOT/etc/sysconfig/network/ifcfg-$bootif
BOOTPROTO='dhcp'
STARTMODE='auto'
EOF
if [ ! -z "$ifname" ]; then
MACX=${ifname#*:}