nixos: copy resize2fs only for stage-1 fileSystems

Changed files
+1 -1
nixos
modules
system
+1 -1
nixos/modules/system/boot/stage-1.nix
···
ln -sf kmod $out/bin/modprobe
# Copy resize2fs if needed.
-
${optionalString (any (fs: fs.autoResize) config.system.build.fileSystems) ''
# We need mke2fs in the initrd.
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
''}
···
ln -sf kmod $out/bin/modprobe
# Copy resize2fs if needed.
+
${optionalString (any (fs: fs.autoResize) fileSystems) ''
# We need mke2fs in the initrd.
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
''}