mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-06-16 02:46:01 +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
|
||||
|
||||
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
|
||||
|
||||
.. note::
|
||||
|
||||
Reference in New Issue
Block a user