Update a kickstart installation in the %post section
Add this to the %post section of your kickstart file:
# Update server from RHN
rpm --import /usr/share/rhn/RPM-GPG-KEY
rhnreg_ks --force --profilename ${HOSTNAME:-"tmp-host-name.mydomain.com"} --username myrhnuser
--password myrhnpasswd
up2date --nox --force --update -v
# Update server from RHN
rpm --import /usr/share/rhn/RPM-GPG-KEY
rhnreg_ks --force --profilename ${HOSTNAME:-"tmp-host-name.mydomain.com"} --username myrhnuser
--password myrhnpasswd
up2date --nox --force --update -v
<< Home