Description of problem: Cannot kickstart a system on Spacewalk 1.1 Version-Release number of selected component (if applicable): 1.1 How reproducible: Every time Steps to Reproduce: 1. Create a new kickstart 2. View the kickstart and verify the %post line before the GPG imports has %post --logfile /mnt/sysimage/root/ks-rhn-post.log in place automatically put by spacewalk. 3. Try to kickstart a system. Actual results: Kickstart fails with: Traceback (most recent call first): File "/tmp/treedir.27146/instimage/usr/lib/anaconda/iutil.py", line 45, in execWithRedirect stdout = open(stdout, "w") File "/usr/lib/anaconda/kickstart.py", line 75, in run root = scriptRoot) File "/usr/lib/anaconda/kickstart.py", line 901, in <lambda> map (lambda s: s.run(anaconda.rootPath, serial, anaconda.intf), postScripts) File "/usr/lib/anaconda/kickstart.py", line 901, in postAction map (lambda s: s.run(anaconda.rootPath, serial, anaconda.intf), postScripts) File "/tmp/treedir.27146/instimage/usr/lib/anaconda/packages.py", line 44, in doPostAction anaconda.id.instClass.postAction(anaconda, flags.serial) File "/usr/lib/anaconda/dispatch.py", line 204, in moveStep rc = stepFunc(self.anaconda) File "/usr/lib/anaconda/dispatch.py", line 127, in gotoNext self.moveStep() File "/usr/lib/anaconda/text.py", line 727, in run anaconda.dispatch.gotoNext() File "/usr/bin/anaconda", line 974, in ? anaconda.intf.run(anaconda) IOError: [Errno 2] No such file or directory: '/mnt/sysimage//mnt/sysimage/root/ks-rhn-post.log' Local variables in innermost frame: searchPath: 0 stdout: /mnt/sysimage//mnt/sysimage/root/ks-rhn-post.log stdin: 0 argv: ['/tmp/ks-script-ugX7Or'] chroot: <function chroot at 0xdc43f50> command: /bin/sh stderr: /mnt/sysimage//mnt/sysimage/root/ks-rhn-post.log root: /mnt/sysimage If the kickstart in /var/lib/rhn/kickstarts is manually edited to read %post --logfile /root/ks-rhn-post.log (ie remove /mnt/sysimage) teh kickstart completes okay. Expected results: Kickstart shoudl complete okay with an installed system. Additional info: This spacewalk server has been incrementally updated over the past year or so from 0.8 through to 1.1 as each version has come out. This is the first time I have tried to kickstart on 1.1.
Looking at the source code it looks like this was fixed in Master via this commit: 189fcb5cd860abfe3b6a5bb496613205766656cc Any chance of a backport to spacewalk-1.1 so that kickstarts will be working again for current users? James
Fix has been backported and spacewalk-java-1.1.52-1 has been released.