Hello! I have a handful of Jetson Xavier NX boards I’m using as worker nodes in a Kubernetes cluster at work. Due to our lab regulations, I typically need to shut down the Jetsons overnight. Kubernetes requires that swap be off and all of the instructions I can find online only give the following command for doing so.
$ sudo swapoff -a
Logging into each device when starting up each day to turn swap back off is inconvenient.
What is the preferred way to make sure that swap is off at startup?
I tried adding a line to /etc/systemd/nv.sh which I saw mentioned in another post. I also tried adding a script to /etc/init.d, but I suspect I neglected to add a symlink to one of the /etc/rcX.d directories (I wasn’t sure which to choose).
I forgot to mention that I’ve also seen instructions for commenting out entries in /etc/fstab, but that doesn’t seem to apply here since I don’t see any swap entries in fstab. Worked fine on my Ubuntu server and Xilinx dev board, but not Jetson.