2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-23 18:48:10 +00:00

Actually set up ifcfg correctly in SLE15

xcatroot is actually responsible, not prepivot.sh
This commit is contained in:
Jarrod Johnson
2018-08-11 20:51:30 -04:00
parent 8a93d63608
commit fc0fcd6a5e

View File

@@ -292,12 +292,11 @@ function getdevfrommac() {
if [ -z $STATEMNT ]; then
for lf in /tmp/dhclient.*.lease; do
netif=${lf#*.}
netif=${netif%.*}
cp $lf "$NEWROOT/var/lib/dhclient/dhclient-$netif.leases"
[ "$xcatdebugmode" > "0" ] && logger -t xcat -p debug "saving $NEWROOT/var/lib/dhclient/dhclient-$netif.leases"
done
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#*:}