Allow Kayobe to wipe NVMe disks
Change-Id: I7dd817e43a86bad9fa88f1c56425d939a50bf22a Story: 2004758 Task: 28866
This commit is contained in:
parent
bf3d31aaa2
commit
f756afce5d
@ -15,9 +15,9 @@
|
||||
- name: Check for unmounted block devices
|
||||
shell: >
|
||||
lsblk -i -o NAME,MOUNTPOINT | awk \
|
||||
'/^ *[|`]-/ && NF > 1 { mounts[master_dev] = mounts[master_dev] $2 " " }
|
||||
/^sd/ && NF == 1 { master_dev = $1; mounts[master_dev] = "" }
|
||||
END { for (dev in mounts) if (mounts[dev] == "") print dev }'
|
||||
'/^ *[|`]-/ && NF > 1 { mounts[master_dev] = mounts[master_dev] $2 " " }
|
||||
/^(nvme|sd)/ && NF == 1 { master_dev = $1; mounts[master_dev] = "" }
|
||||
END { for (dev in mounts) if (mounts[dev] == "") print dev }'
|
||||
register: unmounted_devices
|
||||
changed_when: False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user