mirror of
https://github.com/nix-community/disko.git
synced 2024-07-14 17:50:26 +03:00
gnused is used in the disk-deactivate.jq script, but was not defined in the list of dependencies.
9 lines
271 B
Bash
Executable File
9 lines
271 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -efux -o pipefail
|
|
# dependencies: bash jq util-linux lvm2 mdadm zfs gnugrep sed
|
|
disk=$(realpath "$1")
|
|
|
|
lsblk -a -f >&2
|
|
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname "$0")/disk-deactivate.jq" | bash -x
|
|
lsblk -a -f >&2
|