I'm not using JFS, but this is to mainly make jfsutils available if you have defined a JFS filesystem in your configuration. Signed-off-by: aszlig <aszlig@redmoonstudios.org>wip/yesman
parent
cb2c34f1bb
commit
23160383e3
@ -0,0 +1,19 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
|
||||
let |
||||
inInitrd = any (fs: fs == "jfs") config.boot.initrd.supportedFilesystems; |
||||
in |
||||
{ |
||||
config = mkIf (any (fs: fs == "jfs") config.boot.supportedFilesystems) { |
||||
|
||||
system.fsPackages = [ pkgs.jfsutils ]; |
||||
|
||||
boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ]; |
||||
|
||||
boot.initrd.extraUtilsCommands = mkIf inInitrd '' |
||||
cp -v ${pkgs.jfsutils}/sbin/fsck.jfs "$out/bin/" |
||||
''; |
||||
}; |
||||
} |
Loading…
Reference in new issue