2012-03-09 14:37:58 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
|
|
|
|
system.fsPackages = [ pkgs.e2fsprogs ];
|
|
|
|
|
2017-10-07 02:52:52 +01:00
|
|
|
# As of kernel 4.3, there is no separate ext3 driver (they're also handled by ext4.ko)
|
|
|
|
boot.initrd.availableKernelModules = [ "ext2" "ext4" ];
|
2012-03-09 14:37:58 +00:00
|
|
|
|
|
|
|
boot.initrd.extraUtilsCommands =
|
|
|
|
''
|
|
|
|
# Copy e2fsck and friends.
|
2015-03-29 00:15:41 +00:00
|
|
|
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/e2fsck
|
|
|
|
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/tune2fs
|
2012-03-09 14:37:58 +00:00
|
|
|
ln -sv e2fsck $out/bin/fsck.ext2
|
|
|
|
ln -sv e2fsck $out/bin/fsck.ext3
|
|
|
|
ln -sv e2fsck $out/bin/fsck.ext4
|
|
|
|
'';
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|