Page 1 of 1

disalbe swap via CLI

Posted: Thu May 30, 2019 2:48 am
by Chazragg
Hi guys,

I am looking for a way to disable the swapfile via CLI, in short, I am in the process of learning ansible, docker and Kubernetes. Kubernetes requires the swapfile to be disabled in order to work correctly and as i am using ansible to provision the devices via automated commands I require an alternative method than SSH GUI provided.

most Kubernetes guides online suggest running dphys-swapfile swapoff but this does not seem to be working.

Thank you in advance for any help, it is much appreciated.

Re: disalbe swap via CLI

Posted: Mon Jun 03, 2019 4:06 pm
by MichaIng
/DietPi/dietpi/func/dietpi-set_swapfile 0 :)