zfs: properly disable zfs-based swap

This commit is contained in:
Jörg Thalheim authored and Jörg Thalheim committed 2025-04-01 15:42:50 +00:00
1 parent 212ff71553
commit b36e87600d
3 files changed
+13

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
def turnOffSwaps:
if (.name | test("^zd[0-9]+$")) and .type == "disk" then
"swapoff /dev/" + .name
else
[]
end
;
.blockdevices | map(turnOffSwaps) | flatten | join("\n")