summary refs log tree commit diff
path: root/pkgs/tools/filesystems/genext2fs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2017-11-12 21:36:58 +0100
committerMichael Raskin <7c6f434c@mail.ru>2017-11-12 21:38:09 +0100
commit5f6b88c27f083c4966e970b62af5adf9009bc3de (patch)
tree2128c0c73e7c5e2d95f79a94f7823990b8026e9a /pkgs/tools/filesystems/genext2fs
parent327c351cb2857657115672f36d7642c68c8727cd (diff)
downloadnixpkgs-5f6b88c27f083c4966e970b62af5adf9009bc3de.tar
nixpkgs-5f6b88c27f083c4966e970b62af5adf9009bc3de.tar.gz
nixpkgs-5f6b88c27f083c4966e970b62af5adf9009bc3de.tar.bz2
nixpkgs-5f6b88c27f083c4966e970b62af5adf9009bc3de.tar.lz
nixpkgs-5f6b88c27f083c4966e970b62af5adf9009bc3de.tar.xz
nixpkgs-5f6b88c27f083c4966e970b62af5adf9009bc3de.tar.zst
nixpkgs-5f6b88c27f083c4966e970b62af5adf9009bc3de.zip
genext2fs: fix handling of symlinks of length exactly 60
Amusingly enough, /nix/store/...-kmod-24/bin/kmod is exactly 60
characters.
Diffstat (limited to 'pkgs/tools/filesystems/genext2fs')
-rw-r--r--pkgs/tools/filesystems/genext2fs/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/genext2fs/default.nix b/pkgs/tools/filesystems/genext2fs/default.nix
index acb992b24ad..0ef85abd2b7 100644
--- a/pkgs/tools/filesystems/genext2fs/default.nix
+++ b/pkgs/tools/filesystems/genext2fs/default.nix
@@ -8,6 +8,12 @@ stdenv.mkDerivation {
     sha256 = "1z7czvsf3ircvz2cw1cf53yifsq29ljxmj15hbgc79l6gbxbnka0";
   };
 
+  # https://sourceforge.net/p/genext2fs/bugs/2/
+  # Will be fixed in the next release, whenever this happens
+  postPatch = ''
+    sed -e 's@4 [*] (EXT2_TIND_BLOCK+1)@-1+&@' -i genext2fs.c
+  '';
+
   meta = with stdenv.lib; {
     homepage = http://genext2fs.sourceforge.net/;
     description = "A tool to generate ext2 filesystem images without requiring root privileges";