Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1032522

Summary: Restriction in number of parameters in param file
Product: Red Hat Enterprise Linux 7 Reporter: IBM Bug Proxy <bugproxy>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CANTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: hannsj_uhl, jstodola
Target Milestone: rc   
Target Release: ---   
Hardware: s390x   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-12 19:11:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 744225    
Attachments:
Description Flags
.prm file none

Description IBM Bug Proxy 2013-11-20 10:50:25 UTC

Comment 1 IBM Bug Proxy 2013-11-20 10:50:31 UTC
Problem Description
--------------------------------
This issue is observed in RHEL7.0 pre beta

Steps to reproduce 
--------------------------
1. Add more than 30 parameters in .prm file, 
2. kickstart the installation

What is the restriction for number of parameters in param file? 

 if its exceeds then what is the way to use conf file?
Param file attached

Comment 3 IBM Bug Proxy 2013-11-20 11:04:20 UTC
Created attachment 826565 [details]
.prm file

Comment 4 Jan Stodola 2013-11-20 16:11:12 UTC
You can use conf file the same way as in RHEL-6 -use CMSDASD and CMSCONFFILE boot options in your parameter file, for example:

ro ramdisk_size=40000 cio_ignore=all,!0.0.0009
CMSDASD=0191 CMSCONFFILE=r7.conf
inst.repo=<path_to_repository>

Conf file from RHEL-6 should not need any modification to work in RHEL7, for example:

HOSTNAME="hostname" IPADDR="xx.xx.xx.xx"
NETTYPE="qeth" PORTNAME="FOOBAR" LAYER2=0 VSWITCH=1
SUBCHANNELS="0.0.0c00,0.0.0c01,0.0.0c02"
NETMASK="xx.xx.xx.xx" GATEWAY="xx.xx.xx.xx"
SEARCHDNS="searchdns"
DNS="xx.xx.xx.xx" MTU="4096"
PORTNO=0
DASD=3527,3621,3622,3625,3627,3721,3722,3727
FCP_1="A007 0x500507630503C73D 0x4020400700000000"
FCP_2="A007 0x500507630503C73D 0x4020400600000000"


Regarding the number of parameters in parameter file - it seems that it is not possible to use more than 891 characters in the parameter file - if the parameter file is longer, only the first 891 characters are visible in /proc/cmdline:

[anaconda root@rtt7 ~]# cat /proc/cmdline | wc -c
891
[anaconda root@rtt7 ~]#

I found following in source code of kernel:
jstodola@unused-4-186 ~/tmp/kernel/linux-3.10.0-53.el7$ grep -ri ARCH_COMMAND_LINE_SIZE
arch/s390/kernel/early.c:       COMMAND_LINE[ARCH_COMMAND_LINE_SIZE - 1] = 0;
arch/s390/kernel/early.c:         EBCASC(COMMAND_LINE, ARCH_COMMAND_LINE_SIZE);
arch/s390/kernel/early.c:         ARCH_COMMAND_LINE_SIZE);
arch/s390/include/uapi/asm/setup.h:#define ARCH_COMMAND_LINE_SIZE       896
jstodola@unused-4-186 ~/tmp/kernel/linux-3.10.0-53.el7$

Comment 5 Dave Cantrell 2013-12-12 19:11:52 UTC
Closing per comment #4.  Lots of parameters have to use the CMSCONFFILE as did previous RHEL releases.  The limitation of the param file contents is not imposed by us, that's an IBM limitation.