1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/overlay/make_ext4fs/default.nix
Samuel Dionne-Riel bd0220acc2 make_ext4fs: Fix issue with read-only filesystems
This may trip newer kernels, under some unknown circumstances.

As shown here:

[   10.016001] c7    604 EXT4-fs error (device sda45): ext4_has_uninit_itable:2895: comm mount: Inode table for bg 0 marked as needing zeroing

This happens with the google-walleye device, and unvalidated due to
lack of logs, might be affecting xiaomi-lavender
2019-11-23 17:51:57 -05:00

36 lines
917 B
Nix

{ stdenv, fetchgit, zlib }:
stdenv.mkDerivation {
pname = "make_ext4fs";
version = "unstable-2017-05-21";
src = fetchgit {
url = "git://git.openwrt.org/project/make_ext4fs.git";
rev = "eebda1d55d9701ace2700d7ae461697fadf52d1f";
sha256 = "03lqd5qy3nli9mmnlbgxwsplwz8v10cyjyzl1fxcfz8jvzr00c61";
};
patches = [
./0001-uuid-add-facilities-to-parse-and-print-UUIDs.patch
./0002-make_ext4fs-allow-setting-a-specific-UUID.patch
./0001-LEDE-We-need-to-set-EXT4_BG_INODE_ZEROED-on-at-least.patch
];
buildInputs = [
zlib
];
installPhase = ''
mkdir -p $out/bin
cp make_ext4fs $out/bin
'';
meta = with stdenv.lib; {
homepage = https://git.openwrt.org/?p=project/make_ext4fs.git;
description = "Standalone fork of Android make_ext4fs utility";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = [ maintainers.samueldr ];
};
}