summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2022-08-09 15:48:18 -0700
committerGitHub <noreply@github.com>2022-08-09 15:48:18 -0700
commita26aa972762ba9997d337019436d2dbe01fceef0 (patch)
treecc6d9ae1267d14d3b49453ff4500fca947160d16
parentMerge pull request #185722 from mweinelt/mozilla (diff)
parentfix whitespace (diff)
downloadnixpkgs-a26aa972762ba9997d337019436d2dbe01fceef0.tar.gz
Merge pull request #185463 from phaer/patch-1
zfs: Make zpool available for zpool-expand-pools
-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 795879c6764c..dcd83094b093 100644
--- a/nixos/modules/tasks/filesystems/zfs.nix
+++ b/nixos/modules/tasks/filesystems/zfs.nix
@@ -714,6 +714,8 @@ in
RemainAfterExit = true;
};
+ path = lib.optionals (cfgExpandOnBoot == "all") [ cfgZfs.package ];
+
script = ''
for pool in ${poolListProvider}; do
systemctl start --no-block "zpool-expand@$pool"