summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorPaul Haerle <hello@phaer.org>2022-08-06 21:51:31 +0200
committerGitHub <noreply@github.com>2022-08-06 21:51:31 +0200
commitcc477fb34d8924c88d29e77b5101070c907a7aac (patch)
treec7f22463254fb2a124e642824727b7c7241e913f /nixos/modules/tasks
parentb7ec30b4335d1cc0df7edcbfd3ccc441b8799554 (diff)
downloadnixpkgs-cc477fb34d8924c88d29e77b5101070c907a7aac.tar
nixpkgs-cc477fb34d8924c88d29e77b5101070c907a7aac.tar.gz
nixpkgs-cc477fb34d8924c88d29e77b5101070c907a7aac.tar.bz2
nixpkgs-cc477fb34d8924c88d29e77b5101070c907a7aac.tar.lz
nixpkgs-cc477fb34d8924c88d29e77b5101070c907a7aac.tar.xz
nixpkgs-cc477fb34d8924c88d29e77b5101070c907a7aac.tar.zst
nixpkgs-cc477fb34d8924c88d29e77b5101070c907a7aac.zip
zfs: Make zpool available for zpool-expand-pools
...if cfgExpandOnBoot == "all", otherwise it fails during runtime:
```
Aug 06 19:38:05 nixos zpool-expand-pools-start[981]: /nix/store/ka3vivdray82mi9dql12yf258gkw643l-unit-script-zpool-expand-pools-start/bin/zpool-expand-pools-start: line 3: zpool: command not found
```
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/filesystems/zfs.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix
index 795879c6764..0fc5bb555aa 100644
--- a/nixos/modules/tasks/filesystems/zfs.nix
+++ b/nixos/modules/tasks/filesystems/zfs.nix
@@ -713,6 +713,8 @@ in
             Type = "oneshot";
             RemainAfterExit = true;
           };
+          
+          path = lib.optionals (cfgExpandOnBoot == "all") [ cfgZfs.package ];
 
           script = ''
             for pool in ${poolListProvider}; do