Kickstart does not find client hostname when configuring networking

Solution Unverified - Updated -

Issue

  • using config file to set up /etc/hosts file during kickstart from Satellite
  • config file uses macros to store client's hostname and IP address in /etc/hosts, e.g.:

    {| rhn.system.net_interface.ip_address(eth0) |}   {| rhn.system.hostname |} 
    
  • hostname is not found, and is populated in /etc/hosts as "unknown"

  • also, /etc/sysconfig/network has "localhost.localdomain" as the HOSTNAME

Environment

  • Red Hat Network Satellite
  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content