mirror of
https://github.com/nix-community/disko.git
synced 2024-10-26 07:22:12 +03:00
disk-deactivate: follow by-id/by-uuid links to real device
This commit is contained in:
parent
6bbccd8edd
commit
08dc4d06da
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -efux
|
set -efux
|
||||||
# dependencies: jq util-linux lvm2 mdadm zfs
|
# 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"
|
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname "$0")/disk-deactivate.jq"
|
||||||
|
Loading…
Reference in New Issue
Block a user