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:
parent
97018513c1
commit
b647f0b53f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user