disalbe swap via CLI

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Chazragg
Posts: 1
Joined: Thu May 30, 2019 2:38 am

disalbe swap via CLI

Post 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.
User avatar
MichaIng
Site Admin
Posts: 2332
Joined: Sat Nov 18, 2017 6:21 pm

Re: disalbe swap via CLI

Post by MichaIng »

/DietPi/dietpi/func/dietpi-set_swapfile 0 :)
Post Reply