Bug 838713 - %include broken in %pre/%post section of kickstart
Summary: %include broken in %pre/%post section of kickstart
Keywords:
Status: CLOSED DUPLICATE of bug 827269
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 17
Hardware: All
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-09 22:13 UTC by Kevin Masaryk
Modified: 2013-04-02 23:46 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-07-09 23:33:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kevin Masaryk 2012-07-09 22:13:49 UTC
Description of problem:
Including the %include directive in the %pre or %post section of a kickstart file followed by a file name produces an error during parsing.

Version-Release number of selected component (if applicable):
Fedora 17

How reproducible:
Always

Steps to Reproduce:
1. In either the %pre or %post section of a kickstart, copy a file from an external source to the local filesystem. For example,

  mkdir /tmp/mnt
  mount -t nfs 1.2.3.4:/export /tmp/mnt
  cp /tmp/mnt/foofile /
 
2. Include the file from step 1 in the kickstart with the %include directive:

  %include /foofile

* Add '--erroronfail' to the %pre or %post line being used to more easily see the error.
  
Actual results:
The installation will halt with an error similar to the following:

  fg: no job control

Expected results:
File text should be included into the ks as documented in:

http://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_4._Pre-installation_Script

Additional info:

* Error is generated whether file actually exists or not.

Comment 1 Brian Lane 2012-07-09 23:33:30 UTC

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


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