Hours of hacking later, I figure out that I can solve this by:

creating a child channel -
rhnpush ing the needed packages in there for rhnreg_ks to work

creating a post-install script - putting #!/bin/sh at the top
putting in that script the commands

yum -y install rhn-client-tools
yum -y install rhn-check

rhnreg_ks --serverUrl=http://fedorax.sw/XMLRPC --activationkey=1-c4e26ef98d5622856db463822f1ce391

(fedorax.sw being my spacewalk server)





On 10/16/2010 01:03 PM, John Holland wrote:

 More investigation finds:

in ks-rhn-post.log, there is:


Can't open /etc/sysconfig/rhn/*: No such file or directory.
/tmp/ks-script-cENH2B: line 127: rhnreg_ks: command not found
/tmp/ks-script-cENH2B: line 133: rhn_check: command not found


On 10/16/2010 12:32 PM, John Holland wrote:

I'm unable to get an activation key to install via a kickstart script. If I follow some steps I found online involving installing a repo that has packages like rhn-client-tools and rhn-check (etc) I can then do "rhnreg_ks" manually against the XMLRPC url on my satellite and feed it the activation key and all is well.

How can I get this to work via kickstart automatically?Of course I've added the activation key to the list of keys for the script.

John Holland

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to