From b647f0b53f83227c1fe6ac5fe15c9e10b6e40ae8 Mon Sep 17 00:00:00 2001 From: bybai Date: Thu, 9 Mar 2017 05:17:21 -0500 Subject: [PATCH] change HOSTNAME to hostname --- .../share/xcat/netboot/sles/dracut_033/xcat-prepivot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/sles/dracut_033/xcat-prepivot.sh b/xCAT-server/share/xcat/netboot/sles/dracut_033/xcat-prepivot.sh index c68ced041..b5114ef43 100755 --- a/xCAT-server/share/xcat/netboot/sles/dracut_033/xcat-prepivot.sh +++ b/xCAT-server/share/xcat/netboot/sles/dracut_033/xcat-prepivot.sh @@ -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