I currently work for a Data Center, and I have set up a PXE system with a kickstart file for Ubuntu 16.04, but for some reason I can not get the hostname that I have set to stick. I know it retrieves the hostname from DNS if one is not stated, but no matter what I try, the install sets the hostname as Kickseed. I’ve tried the following:
Setting the hostname under
network --bootproto=DHCP --hostname=HOSTNAME
In the %pre setion as
/usr/bin/hostnamectl set-hostname HOSTNAME
In the %post section as
/usr/bin/hostnamectl set-hostname HOSTNAME
Any help would be greatly appreciated.