disalbe swap via CLI

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

disalbe swap via CLI

Post by Chazragg » Thu May 30, 2019 1:48 am

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
Site Admin
Posts: 1882
Joined: Sat Nov 18, 2017 5:21 pm

Re: disalbe swap via CLI

Post by MichaIng » Mon Jun 03, 2019 3:06 pm

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

Post Reply