mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
disk-deactivate: show disk layout before and after running
This commit is contained in:
1 parent
22e6e78e06
commit
b2ea7d6258
1 file changed
+4
@@ -3,4 +3,8 @@ set -efux
|
|||||||
# dependencies: jq util-linux lvm2 mdadm zfs
|
# dependencies: jq util-linux lvm2 mdadm zfs
|
||||||
disk=$(realpath "$1")
|
disk=$(realpath "$1")
|
||||||
|
|
||||||
|
echo printing partition table before deactivation
|
||||||
|
lsblk -a -f -o +ID-LINK >/dev/stderr
|
||||||
lsblk --output-all --json | jq -r --arg disk_to_clear "$disk" -f "$(dirname "$0")/disk-deactivate.jq"
|
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
|
||||||
Reference in new issue
Block a user