From b44d3045421bfd9857a4cecae4250e88a973f015 Mon Sep 17 00:00:00 2001 From: Victor Shlein Date: Tue, 19 Jun 2018 01:36:12 +0300 Subject: [PATCH] nixos/stage-1: added f2fs-tools' tools for resizing --- nixos/modules/system/boot/stage-1.nix | 4 ++++ 1 file changed, 4 insertions(+) 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.