Skip to content

Commit

Permalink
ignore failure for swapoff
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis committed Mar 28, 2022
1 parent a458276 commit 0be199c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/manager/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ func fixFailedChecks(host string, res *operator.CheckResult, t *task.Builder) (s
// in the sysctl check
// t.Sysctl(host, "vm.swappiness", "0")
t.Shell(host,
"swapoff -a",
"swapoff -a || exit 0", // ignore failure
"", true,
)
msg = "will try to disable swap, please also check /etc/fstab manually"
Expand Down

0 comments on commit 0be199c

Please sign in to comment.