Skip to content

Commit 7503e66

Browse files
committed
Added swap checks to NOP Linux
1 parent 7d91862 commit 7503e66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/en/docs/cluster/nop-linux.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ else
136136
echo "NetworkManager configuration file seems not to exist. Probably non desktop system"
137137
fi
138138

139+
# Check swap
140+
output=$(swapon --show)
141+
if [[ "$output" != "" ]]; then
142+
echo -e "\e[31mFAIL: Your system has swap active. Please uncomment all in /etc/fstab and then turn off: sudo swapoff -a\e[0m" >&2
143+
exit 1
144+
fi
145+
139146
# List all timers and services to validate we have nothing left
140147

141148
output=$(sudo systemctl --all list-timers)

0 commit comments

Comments
 (0)