also deactivate swap partitions

This commit is contained in:
Jörg Thalheim authored and Jörg Thalheim committed 2025-03-11 09:06:40 +00:00
1 parent 8d6dd03a1c
commit 6c1b834456
1 file changed
+4
+4
View File
@@ -43,6 +43,10 @@ def deactivate:
"cryptsetup luksClose \(.path)",
"wipefs --all -f \(.path)"
]
elif .type == "swap" then
[
"swapoff \(.path)",
]
elif .type == "lvm" then
(.name | split("-")[0]) as $vgname |
(.name | split("-")[1]) as $lvname |