Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit fe1aab8

Browse files
jmoscatomvincerx
authored andcommitted
Fix command to disable swap
Change sed script to use var instead of dev
1 parent 66876a7 commit fe1aab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/tutorials/kubernetes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ below are necessary to ensure those preflight checks pass successfully.
192192
193193
.. code-block:: bash
194194
195-
sudo systemctl mask $(sed -n -e 's#^/dev/\([0-9a-z]*\).*#dev-\1.swap#p' /proc/swaps) 2>/dev/null
195+
sudo systemctl mask $(sed -n -e 's#^/var/\([0-9a-z]*\).*#var-\1.swap#p' /proc/swaps) 2>/dev/null
196196
sudo swapoff -a
197197
198198
.. note::

0 commit comments

Comments
 (0)