1 { config, lib, pkgs, ... }:
6 inInitrd = config.boot.initrd.supportedFilesystems.jfs or false;
9 config = mkIf (config.boot.supportedFilesystems.jfs or false) {
11 system.fsPackages = [ pkgs.jfsutils ];
13 boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ];
15 boot.initrd.extraUtilsCommands = mkIf (inInitrd && !config.boot.initrd.systemd.enable) ''
16 copy_bin_and_libs ${pkgs.jfsutils}/sbin/fsck.jfs
19 boot.initrd.systemd.initrdBin = mkIf inInitrd [ pkgs.jfsutils ];