Skip to content

How can I permanetly add the following 'echo "2" > /sys/devices/cpu/rdpmc' to RHCOS ? #3040

Closed Answered by cgwalters
midu16 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I know this is a bit confusing but this forum is for ostree, which is low level OS agnostic tooling to update operating systems. It's independent of OCP for example.

Now, directly writing to /sys via Ignition will likely break with MachineConfig; what you'll need to do instead is write a systemd unit that does e.g. ExecStart=/bin/sh -c 'echo 2 > /sys/devices/cpu/rdpmc' for example.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cgwalters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants