mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Rework Hybrid MBR https://github.com/nix-community/disko/pull/168 (#508)
Add hybrid MBR functionality to the gpt type
This commit is contained in:
1 parent
c12719812d
commit
f7424625dc
5 files changed
+112
-3
No files matched your search
@@ -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
|
||||
;
|
||||
|
||||
|
||||
Reference in new issue
Block a user