mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 08:00:05 +01:00
6 lines
190 B
Bash
Executable file
6 lines
190 B
Bash
Executable file
#!/bin/sh
|
|
set -efux
|
|
# dependencies: jq util-linux lvm2 mdadm zfs
|
|
disk=$(realpath "$1")
|
|
|
|
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname "$0")/disk-deactivate.jq"
|