From de86af48faa03a824917ac90f4776481c7ce9e54 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Wed, 26 Dec 2018 15:30:04 -0500 Subject: [PATCH] linuxPackages_4_{19,20}: works around bug with overlayfs. See: https://github.com/NixOS/nixpkgs/issues/48828#issuecomment-445208626 --- pkgs/os-specific/linux/kernel/patches.nix | 10 ++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 12 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/patches.nix b/pkgs/os-specific/linux/kernel/patches.nix index d54e0153229d..dc41c2e5f15d 100644 --- a/pkgs/os-specific/linux/kernel/patches.nix +++ b/pkgs/os-specific/linux/kernel/patches.nix @@ -58,4 +58,14 @@ rec { }; }; + # Reverts a change related to the overlayfs overhaul in 4.19 + # https://github.com/NixOS/nixpkgs/issues/48828#issuecomment-445208626 + revert-vfs-dont-open-real = rec { + name = "revert-vfs-dont-open-real"; + patch = fetchpatch { + name = name + ".patch"; + url = https://github.com/samueldr/linux/commit/ee23fa215caaa8102f4ab411d39fcad5858147f2.patch; + sha256 = "0bp4jryihg1y2sl8zlj6w7vvnxj0kmb6xdy42hpvdv43kb6ngiaq"; + }; + }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eac05e5125db..78c9693fe4ed 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14560,6 +14560,7 @@ in # when adding a new linux version # kernelPatches.cpu-cgroup-v2."4.11" kernelPatches.modinst_arg_list_too_long + kernelPatches.revert-vfs-dont-open-real ]; }; @@ -14570,6 +14571,7 @@ in # when adding a new linux version # kernelPatches.cpu-cgroup-v2."4.11" kernelPatches.modinst_arg_list_too_long + kernelPatches.revert-vfs-dont-open-real ]; };