mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
e86b78363d
This module doesn't exist since v4.3, where the ext3 driver was removed as ext4.ko can mount ext3 filesystems as well.
23 lines
572 B
Nix
23 lines
572 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
|
|
system.fsPackages = [ pkgs.e2fsprogs ];
|
|
|
|
# As of kernel 4.3, there is no separate ext3 driver (they're also handled by ext4.ko)
|
|
boot.initrd.availableKernelModules = [ "ext2" "ext4" ];
|
|
|
|
boot.initrd.extraUtilsCommands =
|
|
''
|
|
# Copy e2fsck and friends.
|
|
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/e2fsck
|
|
copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/tune2fs
|
|
ln -sv e2fsck $out/bin/fsck.ext2
|
|
ln -sv e2fsck $out/bin/fsck.ext3
|
|
ln -sv e2fsck $out/bin/fsck.ext4
|
|
'';
|
|
|
|
};
|
|
}
|