at 25.11-pre 527 B view raw
1{ 2 config, 3 lib, 4 pkgs, 5 ... 6}: 7 8with lib; 9 10let 11 inInitrd = config.boot.initrd.supportedFilesystems.jfs or false; 12in 13{ 14 config = mkIf (config.boot.supportedFilesystems.jfs or false) { 15 16 system.fsPackages = [ pkgs.jfsutils ]; 17 18 boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ]; 19 20 boot.initrd.extraUtilsCommands = mkIf (inInitrd && !config.boot.initrd.systemd.enable) '' 21 copy_bin_and_libs ${pkgs.jfsutils}/sbin/fsck.jfs 22 ''; 23 24 boot.initrd.systemd.initrdBin = mkIf inInitrd [ pkgs.jfsutils ]; 25 }; 26}