mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-14 00:43:48 +01:00
init disk-deactivate for cleaning up the disk
This commit is contained in:
parent
4ce2aa4845
commit
17da9b0708
4 changed files with 97 additions and 20 deletions
6
disk-deactivate/disk-deactivate
Executable file
6
disk-deactivate/disk-deactivate
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -efux
|
||||
# dependencies: jq util-linux lvm2 mdadm zfs
|
||||
disk=$1
|
||||
|
||||
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname $0)/disk-deactivate.jq"
|
||||
Loading…
Add table
Add a link
Reference in a new issue