Commit ced6d173 authored by nanahira's avatar nanahira

improve

parent 9defedce
Pipeline #4387 failed with stage
in 9 seconds
...@@ -9,4 +9,4 @@ ...@@ -9,4 +9,4 @@
when: ansible_distribution == 'Debian' when: ansible_distribution == 'Debian'
- name: make linux fast again - name: make linux fast again
include_tasks: 'fast-again.yml' include_tasks: 'fast-again.yml'
# when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
...@@ -4,13 +4,16 @@ ...@@ -4,13 +4,16 @@
path: /etc/default/grub path: /etc/default/grub
marker: '# {mark} MyCard Init block' marker: '# {mark} MyCard Init block'
block: | block: |
MYCARD_INIT_KERNEL_PARAMS=""
## add make-linux-fast-again params ## 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" MAKE_LINUX_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" MYCARD_INIT_KERNEL_PARAMS="$MYCARD_INIT_KERNEL_PARAMS $MAKE_LINUX_FAST_AGAIN_PARAMS"
{% for param in extra_params %} {% for param in extra_params %}
## add custom param {{param}} ## add custom param {{param}}
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT {{param}}" MYCARD_INIT_KERNEL_PARAMS="$MYCARD_INIT_KERNEL_PARAMS {{param}}"
{% endfor %} {% endfor %}
## set params
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT $MYCARD_INIT_KERNEL_PARAMS"
register: grub_block_result register: grub_block_result
- name: update-grub - name: update-grub
become: true 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