mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03:00
jq: filter null values from mountpoints from lsblk output
This commit is contained in:
parent
a9e0f9ba44
commit
a511f59961
@ -54,7 +54,7 @@ def deactivate:
|
||||
|
||||
def walk:
|
||||
[
|
||||
(.mountpoints[] | "umount -R \(.)"),
|
||||
(.mountpoints[] | select(. != null) | "umount -R \(.)"),
|
||||
((.children // []) | map(walk)),
|
||||
remove,
|
||||
deactivate
|
||||
|
Loading…
Reference in New Issue
Block a user