mirror of
https://github.com/nix-community/disko.git
synced 2024-08-15 17:30:28 +03:00
disk-deactivate: return correct bash script
This commit is contained in:
parent
ec8b802c2d
commit
7bee8de8e6
@ -3,8 +3,6 @@ set -efux
|
||||
# dependencies: jq util-linux lvm2 mdadm zfs
|
||||
disk=$(realpath "$1")
|
||||
|
||||
echo printing partition table before deactivation
|
||||
lsblk -a -f -o +ID-LINK >/dev/stderr
|
||||
lsblk -a -f >/dev/stderr
|
||||
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname "$0")/disk-deactivate.jq"
|
||||
echo printing partition table after deactivation
|
||||
lsblk -a -f -o +ID-LINK >/dev/stderr
|
||||
lsblk -a -f >/dev/stderr
|
||||
|
Loading…
Reference in New Issue
Block a user