disk-deactivate: follow by-id/by-uuid links to real device

This commit is contained in:
lassulus authored and lassulus committed 2023-01-28 18:08:31 +01:00
1 parent 6bbccd8edd
commit 08dc4d06da
1 file changed
+1 -1
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh
set -efux
# dependencies: jq util-linux lvm2 mdadm zfs
disk=$1
disk=$(realpath "$1")
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname "$0")/disk-deactivate.jq"