mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-09-01 02:44:55 +00:00
Fix command to disable swap
Change sed script to use var instead of dev
This commit is contained in:
committed by
michael vincerra
parent
66876a7db0
commit
fe1aab8b23
@@ -192,7 +192,7 @@ below are necessary to ensure those preflight checks pass successfully.
|
|||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
sudo systemctl mask $(sed -n -e 's#^/dev/\([0-9a-z]*\).*#dev-\1.swap#p' /proc/swaps) 2>/dev/null
|
sudo systemctl mask $(sed -n -e 's#^/var/\([0-9a-z]*\).*#var-\1.swap#p' /proc/swaps) 2>/dev/null
|
||||||
sudo swapoff -a
|
sudo swapoff -a
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|||||||
Reference in New Issue
Block a user