Satellite duplicate system entries
When I kickstart a machine through satellite I have it build against one channel and then in the post script I run a /usr/sbin/rhnreg_ks and activate it to a different channel/activation key dependent upon the servers name. This script is the same script that I used in Satellite 5.3 but now in 5.4 I see the one entry for the systems and the initial channel and a second entry with the post channel.
I have been trying to figure out a way using cobbler or API that I could run to remove the initial entry once the system has been successfully built.
Anyone have any ideas on how to do this or maybe the best way to resolve this issue. I really don't want to have to clean up all of the duplicate entries every time I stage a system.