summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2016-08-23 17:26:13 +0000
committerJan Malakhovski <oxij@oxij.org>2016-08-23 18:14:05 +0000
commit8da59c406cea9ee3fbe37fce6211421281c47b78 (patch)
treee7e5a03c5d58233ab69219b0297eabf320e1922c /nixos/modules/system/boot/stage-1.nix
parent65d26c4dc12f8f0113b6b128573f18492ac5b6f6 (diff)
downloadnixpkgs-8da59c406cea9ee3fbe37fce6211421281c47b78.tar
nixpkgs-8da59c406cea9ee3fbe37fce6211421281c47b78.tar.gz
nixpkgs-8da59c406cea9ee3fbe37fce6211421281c47b78.tar.bz2
nixpkgs-8da59c406cea9ee3fbe37fce6211421281c47b78.tar.lz
nixpkgs-8da59c406cea9ee3fbe37fce6211421281c47b78.tar.xz
nixpkgs-8da59c406cea9ee3fbe37fce6211421281c47b78.tar.zst
nixpkgs-8da59c406cea9ee3fbe37fce6211421281c47b78.zip
nixos: copy resize2fs only for stage-1 fileSystems
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index f26412103ed..982f4e4a85c 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -79,7 +79,7 @@ let
       ln -sf kmod $out/bin/modprobe
 
       # Copy resize2fs if needed.
-      ${optionalString (any (fs: fs.autoResize) config.system.build.fileSystems) ''
+      ${optionalString (any (fs: fs.autoResize) fileSystems) ''
         # We need mke2fs in the initrd.
         copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
       ''}