improve zfs mounted script EVEN MORE

This commit is contained in:
Simon Gardling 2025-07-11 20:19:45 -07:00
parent 8e829637ac
commit 3ba8c1a5a6
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -149,7 +149,7 @@
];
text = ''
#!/bin/sh
zfs list -o mountpoint,mounted | awk 'FNR > 1 && $2 == "yes" {print $1}' | grep -c '${lib.strings.concatStringsSep "\|" dirs}' | grep -Fq ${toString (lib.length dirs)}
zfs list -o mountpoint,mounted -H | awk '$2 == "yes" {print $1}' | grep -c '${lib.strings.concatStringsSep "\|" dirs}' | grep -Fq ${toString (lib.length dirs)}
'';
};
in