f2fs module: add crc32 dependency to initrd kernel modules, closes #23093

f2fs.fsck depends on crc32 module being present in the initrd system,
otherwise, if f2fs is used as the root disk, the system is unbootable.
This commit is contained in:
Ryan Mulligan 2017-02-22 16:13:11 -08:00 committed by Franz Pletz
parent 76ae7e19a9
commit 41b56b4b8a

View File

@ -10,7 +10,7 @@ in
system.fsPackages = [ pkgs.f2fs-tools ];
boot.initrd.availableKernelModules = mkIf inInitrd [ "f2fs" ];
boot.initrd.availableKernelModules = mkIf inInitrd [ "f2fs" "crc32" ];
boot.initrd.extraUtilsCommands = mkIf inInitrd ''
copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/fsck.f2fs