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.
If you provide a kickstart with something like:
bootloader --append="arg1 arg2"
then only the first argument makes it into the bootloader config. I think the following (untested) patch should fix this problem:
diff --git a/kickstart.py b/kickstart.py
index de2dbe9..b33399f 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -43,6 +43,7 @@ import urlgrabber
import warnings
import network
import upgrade
+import shlex
import pykickstart.commands as commands
from storage.devices import *
from scdate.core import zonetab
@@ -278,7 +279,8 @@ class Bootloader(commands.bootloader.RHEL6_Bootloader):
anaconda.id.ksdata.showSteps.append("bootloader")
if self.appendLine:
- anaconda.id.bootloader.args.append(self.appendLine)
+ for arg in shlex.split(self.appendLine):
+ anaconda.id.bootloader.args.append(arg)
if self.password:
anaconda.id.bootloader.setPassword(self.password, isCrypted = self.isCrypted)
Comment 1RHEL Program Management
2012-02-10 21:20:03 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update release.
I'm trying to reproduce with following kickstart file:
bootloader --append="arg1 arg2"
%packages
@core
Both arguments are included on the kernel command line after reboot:
[root@rtt6 ~]# cat /proc/cmdline
root=/dev/mapper/vg_rtt6-lv_root rd_DASD=0.0.3126 rd_DASD=0.0.3726 LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_rtt6/lv_swap KEYTABLE=us rd_NO_LUKS rd_DASD=0.0.3526 SYSFONT=latarcyrheb-sun16 rd_DASD=0.0.3326 crashkernel=auto rd_DASD=0.0.3161 rd_LVM_LV=vg_rtt6/lv_root rd_DASD=0.0.3160 rd_DASD=0.0.3626 rd_DASD=0.0.3426 arg1 arg2 rd_DASD=0.0.3226 rd_NO_DM rd_DASD=0.0.3026 BOOT_IMAGE=0
Also available in /root/anaconda-ks.cfg:
[root@rtt6 ~]# grep bootloader /root/anaconda-ks.cfg
bootloader --location=mbr --driveorder=dasdb,dasdc,dasdd,dasde,dasdf,dasdg,dasdh,dasdi,dasdj,dasdk --append="crashkernel=auto arg1 arg2"
Tested on s390x (RHEL-6.3 nightly, anaconda-13.21.151-1.el6) and x86_64 (RHEL-6.2, anaconda-13.21.149-1.el6), works fine on both.
Chris, any help with reproducing this issue?
If you provide a kickstart with something like: bootloader --append="arg1 arg2" then only the first argument makes it into the bootloader config. I think the following (untested) patch should fix this problem: diff --git a/kickstart.py b/kickstart.py index de2dbe9..b33399f 100644 --- a/kickstart.py +++ b/kickstart.py @@ -43,6 +43,7 @@ import urlgrabber import warnings import network import upgrade +import shlex import pykickstart.commands as commands from storage.devices import * from scdate.core import zonetab @@ -278,7 +279,8 @@ class Bootloader(commands.bootloader.RHEL6_Bootloader): anaconda.id.ksdata.showSteps.append("bootloader") if self.appendLine: - anaconda.id.bootloader.args.append(self.appendLine) + for arg in shlex.split(self.appendLine): + anaconda.id.bootloader.args.append(arg) if self.password: anaconda.id.bootloader.setPassword(self.password, isCrypted = self.isCrypted)