Commit 9defedce authored by nanahira's avatar nanahira

custom param

parent f3aa9dbf
Pipeline #4386 failed with stage
in 2 minutes and 6 seconds
......@@ -29,3 +29,4 @@ railgun:
destination: oversea
remoteGatewayId: 31
laptop: false
extra_params: []
......@@ -9,4 +9,4 @@
when: ansible_distribution == 'Debian'
- name: make linux fast again
include_tasks: 'fast-again.yml'
when: ansible_os_family == 'Debian'
# when: ansible_os_family == 'Debian'
......@@ -4,8 +4,13 @@
path: /etc/default/grub
marker: '# {mark} MyCard Init block'
block: |
## add make-linux-fast-again params
FAST_AGAIN_PARAMS="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off"
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT $FAST_AGAIN_PARAMS"
{% for param in extra_params %}
## add custom param {{param}}
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT {{param}}"
{% endfor %}
register: grub_block_result
- name: update-grub
become: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment