Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit 439b4af

Browse files
Thomas Lejeuneospalax
authored andcommitted
Allow disabling SWAP
Signed-off-by: Thomas Lejeune <thomas.lejeune@moovweb.com>
1 parent 6c18bfb commit 439b4af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/etc/one-context.d/loc-14-mount-swap##one

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ activate_swaps_linux() {
3030
done
3131
}
3232

33-
if [ "$(uname -s)" = 'Linux' ]; then
33+
if [ "$(uname -s)" = 'Linux' ] && [ "${DISABLE_SWAP}" != "true" ]; then
3434
activate_swaps_linux
3535
fi

0 commit comments

Comments
 (0)