summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorVictor Shlein <kisik21@users.noreply.github.com>2018-06-19 01:36:12 +0300
committerVictor Shlein <kisik21@users.noreply.github.com>2018-06-19 01:36:12 +0300
commitb44d3045421bfd9857a4cecae4250e88a973f015 (patch)
tree2c410e52654a76e944c6b6a84085a4b691ebad90 /nixos/modules/system/boot/stage-1.nix
parentc24e91732598f088acdb49129002fa437ec33192 (diff)
downloadnixpkgs-b44d3045421bfd9857a4cecae4250e88a973f015.tar
nixpkgs-b44d3045421bfd9857a4cecae4250e88a973f015.tar.gz
nixpkgs-b44d3045421bfd9857a4cecae4250e88a973f015.tar.bz2
nixpkgs-b44d3045421bfd9857a4cecae4250e88a973f015.tar.lz
nixpkgs-b44d3045421bfd9857a4cecae4250e88a973f015.tar.xz
nixpkgs-b44d3045421bfd9857a4cecae4250e88a973f015.tar.zst
nixpkgs-b44d3045421bfd9857a4cecae4250e88a973f015.zip
nixos/stage-1: added f2fs-tools' tools for resizing
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index 55bb6d3449c..21f2fdb4158 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -126,6 +126,10 @@ let
       ${optionalString (any (fs: fs.autoResize) fileSystems) ''
         # We need mke2fs in the initrd.
         copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
+        # Copy also f2fs-tools' fsck and resize
+        # TODO: separate these in case no f2fs fs are present
+        copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/fsck.f2fs
+        copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/resize.f2fs
       ''}
 
       # Copy secrets if needed.