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

change HOSTNAME to hostname

This commit is contained in:
bybai 2017-03-09 05:17:21 -05:00
parent 97018513c1
commit b647f0b53f

View File

@ -140,8 +140,8 @@ for lf in /tmp/dhclient.*.lease; do
cp $lf "$NEWROOT/var/lib/dhclient/dhclient-$netif.leases"
done
if [ -f $NEWROOT/etc/HOSTNAME ]; then
echo `hostname -s` > $NEWROOT/etc/HOSTNAME
if [ -f $NEWROOT/etc/hostname ]; then
echo `hostname -s` > $NEWROOT/etc/hostname
fi
if [ ! -z "$ifname" ]; then