The only way I was able to fix this (and it occurs for me after the install if I tried to register) was this in %post: echo "192.168.10.100 myhostname" >> /etc/hosts of course make the necessary substitutions, and perform this before you do the rhnreg_ks James S. Martin, RHCE Contractor Administrative Office of the United States Courts Washington, DC (202) 502-2394 kickstart-list-bounces@xxxxxxxxxx wrote on 03/29/2006 12:00:38 PM: > I set it in my post like this: > > export HOSTNAME=`grep HOSTNAME /etc/sysconfig/network | awk -F= '{print > $2}'` > hostname $HOSTNAME > > > -----Original Message----- > From: kickstart-list-bounces@xxxxxxxxxx > [mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of James P > Sent: Wednesday, March 29, 2006 7:48 AM > To: Discussion list about Kickstart > Subject: Re: Redhat RHN (re)-joining in Kickstart > > Kinda depends how you're setting your hostname and how your doing your > registration during the kickstart, but it should be fairly easy no > matter how you approach it. In my own builds, I set the hostname in the > %pre section and then register in the %post like this: > > rhnreg_ks --profilename $HOSTNAME > > p.s. Not sure if this is what you meant, but you don't really have to > re-register the systems just to change their profile names. You can edit > that part of the RHN website manually. > > Philip Rowlands wrote: > > > On Wed, 29 Mar 2006, Phil Bettinson wrote: > > > >> I'm currently arguing with a small part of a kickstart script that > >> joins, and updates the computers to the kickstart network. It works, > >> appart from the fact that it registers them as "localhost.localhost", > > >> as opposed to their machine names. > >> > >> The machines have the correct names when they reboot (that is, the > >> pick up the correct hostnames, and have the right ip addresses etc.), > > >> but it means that I have to re-register them with RHN in order to > >> give them a sane name. > > > > > > I had this as a %post script: > > > > #!/bin/sh - > > . /etc/sysconfig/network > > hostname -v -- "$HOSTNAME" > > > > > > which might do the trick. > > > > > > Cheers, > > Phil > > > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list@xxxxxxxxxx > > https://www.redhat.com/mailman/listinfo/kickstart-list > > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/kickstart-list