mirror of
https://github.com/nix-community/disko.git
synced 2024-10-26 07:22:12 +03:00
disk-deactivate: support all raid types
This commit is contained in:
parent
7036bb8b30
commit
7304727801
@ -43,7 +43,7 @@ def deactivate:
|
|||||||
[
|
[
|
||||||
"lvremove -fy \($vgname)/\($lvname)"
|
"lvremove -fy \($vgname)/\($lvname)"
|
||||||
]
|
]
|
||||||
elif .type == "raid1" then
|
elif (.type | contains("raid")) then
|
||||||
[
|
[
|
||||||
"mdadm --stop \(.name)"
|
"mdadm --stop \(.name)"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user