Skip to content

Commit

Permalink
update setting of kernel params to persist after reboot
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <[email protected]>
  • Loading branch information
briandowns committed Jul 6, 2020
1 parent 71525e5 commit 4687ffc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -875,10 +875,10 @@ setup_etcd_user() {
# update_kernel_params adjusts the necessary kernel parameters
# to allow RKE2 to run in CIS mode.
update_kernel_params() {
sysctl -w vm.panic_on_oom=0
sysctl -w kernel.panic=10
sysctl -w kernel.panic_on_oops=1
sysctl -w kernel.keys.root_maxbytes=25000000
for param in vm.panic_on_oom=0 kernel.panic=10 kernel.panic_on_oops=1 kernel.keys.root_maxbytes=25000000; do
sysctl -w ${param}
echo ${param} >> /etc/sysctl.d/local.conf
done
}

# main
Expand Down

0 comments on commit 4687ffc

Please sign in to comment.