mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
jq: filter null values from mountpoints from lsblk output
This commit is contained in:
parent
a9e0f9ba44
commit
a511f59961
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ def deactivate:
|
|||
|
||||
def walk:
|
||||
[
|
||||
(.mountpoints[] | "umount -R \(.)"),
|
||||
(.mountpoints[] | select(. != null) | "umount -R \(.)"),
|
||||
((.children // []) | map(walk)),
|
||||
remove,
|
||||
deactivate
|
||||
|
|
Loading…
Reference in a new issue