03ebb883d1
reiserfs now have separate modules that are conditional on boot.supportedFilesystems and boot.initrd.supportedFilesystems. By default, these include the filesystems specified in the fsType attribute in fileSystems. Ext2/3/4 support is currently unconditional. Also unbreak the installer test (http://hydra.nixos.org/build/2272302). svn path=/nixos/trunk/; revision=32954
25 lines
514 B
Nix
25 lines
514 B
Nix
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
let
|
|
|
|
inInitrd = any (fs: fs == "reiserfs") config.boot.initrd.supportedFilesystems;
|
|
|
|
in
|
|
|
|
{
|
|
config = mkIf (any (fs: fs == "reiserfs") config.boot.supportedFilesystems) {
|
|
|
|
system.fsPackages = [ pkgs.reiserfsprogs ];
|
|
|
|
boot.initrd.kernelModules = mkIf inInitrd [ "reiserfs" ];
|
|
|
|
boot.initrd.extraUtilsCommands = mkIf inInitrd
|
|
''
|
|
cp -v ${pkgs.reiserfsprogs}/sbin/reiserfsck $out/bin
|
|
ln -sv reiserfsck $out/bin/fsck.reiserfs
|
|
'';
|
|
|
|
};
|
|
}
|