Bug 846835 - %include no longer works in %packages section of kickstart
Summary: %include no longer works in %packages section of kickstart
Keywords:
Status: CLOSED DUPLICATE of bug 827269
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-08 20:51 UTC by John Florian
Modified: 2012-08-09 17:15 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-09 16:31:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Florian 2012-08-08 20:51:19 UTC
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):
livecd-tools-17.11-1.fc17.x86_64

How reproducible:
always

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.

Actual results:
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


Expected results:
Should create ISO image as if packages named in /tmp/test-packages.ks were included directly within /tmp/test.ks.


Additional info:
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.

Comment 1 Brian Lane 2012-08-08 22:07:47 UTC
What version of pykickstart do you have installed?

Comment 2 John Florian 2012-08-09 12:07:38 UTC
pykickstart-1.99.7-1.fc17.noarch on the (buggy) F17 box.
pykickstart-1.99.4-1.fc16.noarch on the (good) F16 box.

Comment 3 Brian Lane 2012-08-09 16:31:45 UTC
f17 needs a new pykickstart build.

*** This bug has been marked as a duplicate of bug 827269 ***

Comment 4 Mike Burns 2012-08-09 16:42:11 UTC
fwiw, the f18 version works correctly, so you can:

yum install fedora-release-rawhide
yum update --enablerepo=rawhide pykickstart

Comment 5 John Florian 2012-08-09 17:15:39 UTC
Brian/Mike, thank you for the prompt info and work-around.


Note You need to log in before you can comment on or make changes to this bug.