mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 22:43:28 +01:00
also deactivate swap partitions
This commit is contained in:
1 parent
8d6dd03a1c
commit
6c1b834456
1 file changed
+4
@@ -43,6 +43,10 @@ def deactivate:
|
|||||||
"cryptsetup luksClose \(.path)",
|
"cryptsetup luksClose \(.path)",
|
||||||
"wipefs --all -f \(.path)"
|
"wipefs --all -f \(.path)"
|
||||||
]
|
]
|
||||||
|
elif .type == "swap" then
|
||||||
|
[
|
||||||
|
"swapoff \(.path)",
|
||||||
|
]
|
||||||
elif .type == "lvm" then
|
elif .type == "lvm" then
|
||||||
(.name | split("-")[0]) as $vgname |
|
(.name | split("-")[0]) as $vgname |
|
||||||
(.name | split("-")[1]) as $lvname |
|
(.name | split("-")[1]) as $lvname |
|
||||||
|
|||||||
Reference in new issue
Block a user