Bug 1125404
Summary: | [RHEL 7] grub2 improperly escapes spaces in kernel parameters | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Herton R. Krzesinski <hkrzesin> |
Component: | grub2 | Assignee: | Peter Jones <pjones> |
Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | jjaburek, mbanas, mkovarik |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | grub2-2.02-0.17.el7 | Doc Type: | Bug Fix |
Doc Text: |
Cause: In order to support certain types of boot media, grub2 had been made to escape slashes in several different places. One of these was unnecessary, and prevented certain types of command line arguments from being passed to the kernel.
Consequence: Kernel command line arguments which need to include escaped characters could not be passed to the kernel correctly.
Fix: Remove one of the places we parsed escape characters.
Result: Those command line options can work again.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 12:23:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Herton R. Krzesinski
2014-07-31 18:20:57 UTC
I did a test rebuilding grub2 on RHEL 7, replacing the patch on src.rpm with the fixed one proposed at bug 923374 (https://bugzilla.redhat.com/attachment.cgi?id=911363), and it fixed the issue. *** Bug 1233229 has been marked as a duplicate of this bug. *** Using grub2-2.02-0.25.el7 - added kernel option - test="abc 123" [root@system1 ~]# cat /proc/cmdline BOOT_IMAGE=/vmlinuz root=/dev/mapper/rhel_system1-root ro crashkernel=auto rd.lvm.lv=rhel_system1/root rd.lvm.lv=rhel_system1/swap LANG=en_US.UTF-8 "test=abc 123" Based on [1]: Double-quotes can be used to protect spaces in values, e.g.: param="spaces in here" Moving back to Assigned. Actual Result: "test=abc 123" Expected Result: test="abc 123" [1] https://www.kernel.org/doc/Documentation/kernel-parameters.txt > Actual Result:
> "test=abc 123"
>
> Expected Result:
> test="abc 123"
This is the same behavior as in RHEL 7.1 and is unrelated to this bug. If you find some actual incorrect behavior due to this, please file that as a different bug - but there's a good chance any such problem you find will be a bug in something parsing the string later, since in terms of shell quoting, these two strings are still identical.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-2401.html |