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:
parent
b60eaae0e6
commit
a2b365dc75
@ -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#*:}
|
||||
|
Loading…
x
Reference in New Issue
Block a user