mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03: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)",
|
||||
"wipefs --all -f \(.path)"
|
||||
]
|
||||
elif .type == "swap" then
|
||||
[
|
||||
"swapoff \(.path)",
|
||||
]
|
||||
elif .type == "lvm" then
|
||||
(.name | split("-")[0]) as $vgname |
|
||||
(.name | split("-")[1]) as $lvname |
|
||||
|
||||
Reference in new issue
Block a user