mirror of
https://github.com/nix-community/disko.git
synced 2024-10-26 07:22:12 +03:00
Allow more ways to detect disk to deactivate
This commit is contained in:
parent
db1150487c
commit
a816daa384
@ -69,7 +69,10 @@ def walk:
|
|||||||
|
|
||||||
def init:
|
def init:
|
||||||
"/dev/\(.name)" as $disk |
|
"/dev/\(.name)" as $disk |
|
||||||
if $disk == $disk_to_clear then
|
"/dev/disk/by-id/\(."id-link")" as $disk_by_id |
|
||||||
|
"/dev/disk/by-id/\(.tran)-\(.id)" as $disk_by_id2 |
|
||||||
|
"/dev/disk/by-id/\(.tran)-\(.wwn)" as $disk_by_wwn |
|
||||||
|
if $disk == $disk_to_clear or $disk_by_id == $disk_to_clear or $disk_by_id2 == $disk_to_clear or $disk_by_wwn == $disk_to_clear then
|
||||||
[
|
[
|
||||||
"set -fu",
|
"set -fu",
|
||||||
walk
|
walk
|
||||||
|
Loading…
Reference in New Issue
Block a user