mirror of
https://github.com/nix-community/disko.git
synced 2024-08-15 17:30:28 +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