mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 00:25:24 +00:00
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
23 lines
530 B
Nix
23 lines
530 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
|
|
system.fsPackages = [ pkgs.e2fsprogs ];
|
|
|
|
boot.initrd.kernelModules = [ "ext2" "ext3" "ext4" ];
|
|
|
|
boot.initrd.extraUtilsCommands =
|
|
''
|
|
# Copy e2fsck and friends.
|
|
cp -v ${pkgs.e2fsprogs}/sbin/e2fsck $out/bin
|
|
cp -v ${pkgs.e2fsprogs}/sbin/tune2fs $out/bin
|
|
ln -sv e2fsck $out/bin/fsck.ext2
|
|
ln -sv e2fsck $out/bin/fsck.ext3
|
|
ln -sv e2fsck $out/bin/fsck.ext4
|
|
cp -pdv ${pkgs.e2fsprogs}/lib/lib*.so.* $out/lib
|
|
'';
|
|
|
|
};
|
|
}
|