2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

fix hostname linux in statelite sles12.2

This commit is contained in:
bybai 2017-03-09 04:12:47 -05:00
parent b60eaae0e6
commit a2b365dc75

View File

@ -134,12 +134,7 @@ function getdevfrommac() {
done
}
for lf in /tmp/dhclient.*.lease; do
netif=${lf#*.}
netif=${netif%.*}
cp $lf "$NEWROOT/var/lib/dhclient/dhclient-$netif.leases"
done
echo `hostname -s` > $NEWROOT/etc/HOSTNAME
if [ ! -z "$ifname" ]; then
MACX=${ifname#*:}