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 ```
This commit is contained in:
@@ -713,6 +713,8 @@ in
|
|||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
path = lib.optionals (cfgExpandOnBoot == "all") [ cfgZfs.package ];
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
for pool in ${poolListProvider}; do
|
for pool in ${poolListProvider}; do
|
||||||
|
|||||||
Reference in New Issue
Block a user