mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
jq: filter null values from mountpoints from lsblk output
This commit is contained in:
1 parent
a9e0f9ba44
commit
a511f59961
1 file changed
+1
-1
@@ -54,7 +54,7 @@ def deactivate:
|
||||
|
||||
def walk:
|
||||
[
|
||||
(.mountpoints[] | "umount -R \(.)"),
|
||||
(.mountpoints[] | select(. != null) | "umount -R \(.)"),
|
||||
((.children // []) | map(walk)),
|
||||
remove,
|
||||
deactivate
|
||||
|
||||
Reference in new issue
Block a user