mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-16 03:32:02 +03:00
bd0220acc2
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
36 lines
917 B
Nix
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 ];
|
|
};
|
|
}
|