Disable up2date --register during PXE install

Hi folks,

I really hope someone can help me (soon :slight_smile: ) as I can't work out what I'm doing wrong and google is not helpful either.

Basically I have to setup 20 Dell servers with RHEL 4.8 (no, not 5, must be 4.8). Of course I have tftp and I'm trying to install them via nfs with kickstart and PXE. OS install is going fine until my bits in %post section of kickstart.

I need to install DELL OMSA using up2date. up2date requires interactive registration which I want to disable. On running system I can just use:

  sed -e "9s/up2date/#up2date/" /etc/sysconfig/rhn/sources

and that disables RHN registration. But for some reason I can't disable RHN registration while in kickstart. sed is working fine (well, sed is making change but I think this change is in wrong place?), changes line but up2date still wants to register! Is up2date using different config file with sources? Is up2date swapping my file after sed makes changes? How can I use up2date with my yum repo from kickstart %post section?
Using rhn_register_ks is out of question as I don't have enough licenses at this moment.

Many thanks!
Chris

One way around the issue would be to set up your own repository server. Have a look at https://fedorahosted.org/spacewalk/

Hi,

Yeah, I've got my own repo.

I know now what's the problem is- SELinux!!! Doesn't want me to change those files!!!

Need to find a way to disable selinux during install.
What a pain in the neck!

many thanks
Chris

selinux --disabled

Hi,

Many thanks. Actually it needs to be selinux=0 for anaconda.
Als0, for the note, there is a bug in RHEL 4.8 which wasn't fixed - kickstart doesn't understand selinux commands. Apparently it was too close to release date to fix that.

Hope that helps!

Chris