tuned [bootloader] plugin incorrectly escapes "cmdline" parameters with commas.

Solution Verified - Updated -

Issue

  • I have created a custom tuned profile as show below:
# mkdir /etc/tuned/myprofile
# cat /etc/tuned/myprofile/tuned.conf
[main]
include=network-latency

[bootloader]
cmdline = isolcpus=0-1,2-3
  • Because of the comma between 0-1 and 2-3, this gets turned by tuned into ['isolcpus=0-1', '2-3'] on the kernel command line, while it should be isolcpus=0-1,2-3.

Eg:1

# rpm -q tuned
tuned-2.3.0-11.el7.noarch

# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.10.0-229.el7.x86_64 root=/dev/mapper/rhel-root ro rd.lvm.lv=rhel/swap crashkernel=auto rd.lvm.lv=rhel/root [\'isolcpus=0-1\', \'2-3\']

Eg:2

# rpm -q tuned 
tuned-2.3.0-11.el7_0.3.noarch

# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.10.0-229.el7.x86_64 root=/dev/mapper/rhel-root ro rd.lvm.lv=rhel/swap crashkernel=auto rd.lvm.lv=rhel/root [\'isolcpus=0-1\', \'2-3\']

Eg:3:

# rpm -q tuned
tuned-2.4.1-1.el7.noarch

# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.10.0-229.el7.x86_64 root=/dev/mapper/rhel-root ro rd.lvm.lv=rhel/swap crashkernel=auto rd.lvm.lv=rhel/root [\'isolcpus=0-1\', \'2-3\']

Environment

  • Red Hat Enterprise Linux 7
  • tuned

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content