-
-
Save anonymous/4876a228b9f399f848ca4ca2a668b70f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF not regex.match('GRUB_CMDLINE_LINUX_DEFAULT=".*?"') then | |
append_to_file | |
else if regex.match('GRUB_CMDLINE_LINUX_DEFAULT=".*?"') then | |
replace_in_file | |
finally | |
grub2-mkconfig /boot/grub2/grub.cfg -o /boot/grub2/grub.cfg | |
end | |
kernel.grub_args: | |
file.replace: | |
- path: /etc/default/grub | |
- repl: 'GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on isolcpus=1-15,17-31 nohz_full=1-15,17-31 rcu_nocbs=1-15,17-31 default_hugepagesz=1GB hugepagesz=1GB hugepages=8"' | |
- pattern: 'GRUB_CMDLINE_LINUX_DEFAULT=".*?"' | |
- flags: ['IGNORECASE', 'MULTILINE'] | |
#cat /proc/cmdline | |
#grub2-mkconfig /boot/grub2/grub.cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment