diff options
author | Paul Haerle <hello@phaer.org> | 2022-08-06 21:51:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 21:51:31 +0200 |
commit | cc477fb34d8924c88d29e77b5101070c907a7aac (patch) | |
tree | c7f22463254fb2a124e642824727b7c7241e913f /nixos/modules/tasks | |
parent | b7ec30b4335d1cc0df7edcbfd3ccc441b8799554 (diff) | |
download | nixpkgs-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.nix | 2 |
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 |