2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 02:08:25 +00:00

change HOSTNAME to hostname

This commit is contained in:
bybai
2017-03-09 05:17:21 -05:00
committed by Jarrod Johnson
parent 2763a7229d
commit ca08a593a8

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