Add hybrid MBR functionality to the gpt type
This commit is contained in:
danjujan authored and GitHub committed 2024-01-26 21:59:23 +01:00
1 parent c12719812d
commit f7424625dc
5 files changed
+112 -3

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ def remove:
;
def deactivate:
if .type == "disk" then
if .type == "disk" or .type == "loop" then
[
# If this disk is a member of raid, stop that raid
"md_dev=$(lsblk \(.path) -l -p -o type,name | awk 'match($1,\"raid.*\") {print $2}')",
@@ -54,7 +54,7 @@ def deactivate:
"mdadm --stop \(.name)"
]
else
[]
["echo Warning: unknown type '\(.type)'. Consider handling this in https://github.com/nix-community/disko/blob/master/disk-deactivate/disk-deactivate.jq"]
end
;