Bug 700180

Summary: [RFE] kickstart option to pass current arch
Product: [Fedora] Fedora Reporter: jcpunk
Component: anacondaAssignee: Brian Lane <bcl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: anaconda-maint-list, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-03 17:40:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description jcpunk 2011-04-27 16:48:02 UTC
Description of problem:
Currently there is a way to pass (as http headers) the mac address and system serial number.  It would be nice to also be able to pass the arch being installed.  This way systems that can take either x86 or x86_64 can identify which version they are installing to a web app that can appropriately build the kickstart install path.

This feature is of particular interest to me as my site requires a standard configuration for all installed systems, but different groups require different architectures.  Some of our 3rd party apps require 32-bit others suggest 64-bit.  Other than the arch, my kickstart files are 100% identical.

It would be nice to be able to use just one kickstart file for all of my systems, rather than several with a one line difference.

Since url is processed before %pre, I can't seem to hack this in.

Comment 1 Chris Lumens 2011-04-28 13:02:15 UTC
We should already be doing this.  Do you see the following headers:

    checked_asprintf(&extraHeaders[0], "X-Anaconda-Architecture: %s", getProductArch());
    checked_asprintf(&extraHeaders[1], "X-Anaconda-System-Release: %s", getProductName());

Comment 2 jcpunk 2011-04-29 14:01:20 UTC
I do indeed!

I wasn't able to find a reference to this feature in the documentation.  May I request that it be added to the Fedora Kickstart documentation?

Sorry for the bother.

Comment 3 Brian Lane 2011-05-03 17:40:24 UTC
Updated the wiki - https://fedoraproject.org/wiki/Anaconda/Kickstart#HTTP_Headers