File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
shared/templates/kernel_module_disabled Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if LC_ALL=C grep -q -m 1 "^install {{{ KERNMODULE }}}" /etc/modprobe.d/{{{ KERNM
77 {{% if '#' in KERNMODULE %}}
88 {{{ raise("KERNMODULE (" + KERNMODULE + ") uses sed path separator (#) in " + rule_id) }}}
99 {{% endif %}}
10- sed -i 's#^install {{{ KERNMODULE }}}.*#install {{{ KERNMODULE }}} /bin/true #g' /etc/modprobe.d/{{{ KERNMODULE }}}.conf
10+ sed -i 's#^install {{{ KERNMODULE }}}.*#install {{{ KERNMODULE }}} /bin/false #g' /etc/modprobe.d/{{{ KERNMODULE }}}.conf
1111else
1212 echo -e "\n# Disable per security requirements" >> /etc/modprobe.d/{{{ KERNMODULE }}}.conf
1313 echo "install {{{ KERNMODULE }}} /bin/false" >> /etc/modprobe.d/{{{ KERNMODULE }}}.conf
Original file line number Diff line number Diff line change 1313 storage:
1414 files:
1515 - contents:
16- source: data:,install%20{{{ KERNMODULE | urlencode }}}%20/bin/true %0Ablacklist%20{{{ KERNMODULE | urlencode }}}%0A
16+ source: data:,install%20{{{ KERNMODULE | urlencode }}}%20/bin/false %0Ablacklist%20{{{ KERNMODULE | urlencode }}}%0A
1717 mode: 0644
1818 path: /etc/modprobe.d/{{{ KERNMODULE }}}.conf
1919 overwrite: true
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- echo " install {{{ KERNMODULE }}} /bin/true " > /etc/modprobe.d/{{{ KERNMODULE }}}.conf
3+ echo " install {{{ KERNMODULE }}} /bin/false " > /etc/modprobe.d/{{{ KERNMODULE }}}.conf
44{{% if " ol" in product or ' rhel' in product or ' ubuntu' in product %}}
55echo " blacklist {{{ KERNMODULE }}}" >> /etc/modprobe.d/{{{ KERNMODULE }}}.conf
66{{% endif %}}
You can’t perform that action at this time.
0 commit comments