Red Hat Bugzilla – Bug 846835
%include no longer works in %packages section of kickstart
Last modified: 2012-08-09 13:15:39 EDT
Description of problem:
For modularity and other reasons, I have kickstarts using the %include directive in the %packages section and have done so dating back to Fedora 10. In Fedora 17, this no longer works.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Customize a trivial kickstart, say /tmp/test.ks, so as to have %packages mention something like "%include /tmp/test-packages.ks"
2. Create /tmp/test-packages.ks with a list of a few package names, just like they might appear in the %packages section.
3. Try to create ISO image using /tmp/test.ks.
I receive an error message like:
Error creating Live CD : Failed to find package '%include /tmp/test-packages.ks' : No package(s) available to install
Should create ISO image as if packages named in /tmp/test-packages.ks were included directly within /tmp/test.ks.
The last spin I'd made with livecd-tools was on Fedora 16, about a few weeks ago, and that worked fine. I believe I used livecd-tools-16.15-1.fc16.x86_64 since I see that was installed May 23, 2012.
What version of pykickstart do you have installed?
pykickstart-1.99.7-1.fc17.noarch on the (buggy) F17 box.
pykickstart-1.99.4-1.fc16.noarch on the (good) F16 box.
f17 needs a new pykickstart build.
*** This bug has been marked as a duplicate of bug 827269 ***
fwiw, the f18 version works correctly, so you can:
yum install fedora-release-rawhide
yum update --enablerepo=rawhide pykickstart
Brian/Mike, thank you for the prompt info and work-around.