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 b5114ef43..d8e12e290 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,7 +140,7 @@ for lf in /tmp/dhclient.*.lease; do cp $lf "$NEWROOT/var/lib/dhclient/dhclient-$netif.leases" done -if [ -f $NEWROOT/etc/hostname ]; then +if [ -f $NEWROOT/etc/hostname ]; then echo `hostname -s` > $NEWROOT/etc/hostname fi