From 439b4af8b9d526b1a74903e6d855d8905b8d2b42 Mon Sep 17 00:00:00 2001 From: Thomas Lejeune Date: Mon, 25 Apr 2022 06:32:29 -0700 Subject: [PATCH] Allow disabling SWAP Signed-off-by: Thomas Lejeune --- src/etc/one-context.d/loc-14-mount-swap##one | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/one-context.d/loc-14-mount-swap##one b/src/etc/one-context.d/loc-14-mount-swap##one index 978b3b8..a6ebe1d 100755 --- a/src/etc/one-context.d/loc-14-mount-swap##one +++ b/src/etc/one-context.d/loc-14-mount-swap##one @@ -30,6 +30,6 @@ activate_swaps_linux() { done } -if [ "$(uname -s)" = 'Linux' ]; then +if [ "$(uname -s)" = 'Linux' ] && [ "${DISABLE_SWAP}" != "true" ]; then activate_swaps_linux fi