mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
9 lines
277 B
Bash
Executable File
9 lines
277 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -efux -o pipefail
|
|
# dependencies: bash jq util-linux lvm2 mdadm zfs
|
|
disk=$(realpath "$1")
|
|
|
|
lsblk -a -f >/dev/stderr
|
|
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname "$0")/disk-deactivate.jq" | bash -x
|
|
lsblk -a -f >/dev/stderr
|