Bug 97571 - kickstart %pre poorly documented
kickstart %pre poorly documented
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: anaconda (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tammy Fox
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-06-17 16:31 EDT by Travis Crawford
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-08-19 11:40:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Travis Crawford 2003-06-17 16:31:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3.1) Gecko/20030425

Description of problem:
Use of the %pre directive is poorly documented, especially with regard to how it
interacts with the rest of the install process. The %include directive in more
recent versions of anaconda fixes this shortcoming, but it doesn't really help
when working with the current version of AS.

Specifically, documenting how a %pre script can (if it can) modify the kickstart
file. An example would be determining the hardware type (with dmidecode), and
loading the appropriate driver (such as a scsi controller driver that was
unsupported when AS 2.1 initially shipped).


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

How reproducible:

Steps to Reproduce:
1. Search for %pre information in places such as the mailing list, google, etc.
2. Find hardly anything.

Additional info:
Comment 1 Jeremy Katz 2003-06-17 16:47:05 EDT
You can't do this in 2.1 (it's why the %include directive was added).  

Assigning to Tammy to double-check what's currently there for the next release.
Comment 3 Tammy Fox 2003-06-17 18:03:43 EDT
The latest step of docs for kickstart show how to use the %pre section to
determine information and then include it later in the kickstart file. Like
Jeremy said, the %include directive was added after RHEL 2.1. Is this the type
of example you are looking for?
Comment 4 Travis Crawford 2003-06-18 08:08:07 EDT
In the kickstart-mailing list there have been reports of regenerating an entire
kickstart file in the %pre section, and writing it to /tmp/ks.cfg so that the
new version will be reread after %pre. grep'ing through /usr/lib/anaconda does
not find that string, but I did find /tmp/anaconda-ks.cfg. So I tried writing to
both of these locations in %pre but without success. Is regenerating the entire
kickstart file in %pre possible in AS 2.1?

Comment 5 Tammy Fox 2003-08-19 11:40:30 EDT
The next version will include %include, and the next version of the docs will
include an example of how to use %pre to create a file and include it with %include.

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