[Backport release-25.05] util-linux, kubernetes, k3s: drop util-linux.withPatches (#422587)

This commit is contained in:
Morgan Jones
2025-07-06 16:26:11 -07:00
committed by GitHub
3 changed files with 2 additions and 22 deletions

View File

@@ -336,10 +336,7 @@ in
[
gitMinimal
openssh
# TODO (#409339): remove this patch. We had to add it to avoid a mass rebuild
# for the 25.05 release. Once the staging cycle referenced in the above PR completes,
# switch back to plain util-linux.
util-linux.withPatches
util-linuxMinimal
iproute2
ethtool
thin-provisioning-tools

View File

@@ -332,11 +332,6 @@ let
ldflags = versionldflags;
}).overrideAttrs
overrideContainerdAttrs;
# TODO (#409339): remove this patch. We had to add it to avoid a mass rebuild
# for the 25.05 release. Once the staging cycle referenced in the above PR completes,
# switch back to plain util-linuxMinimal.
k3sUtilLinux = util-linuxMinimal.withPatches;
in
buildGoModule rec {
pname = "k3s";
@@ -383,7 +378,7 @@ buildGoModule rec {
ipset
bridge-utils
ethtool
k3sUtilLinux # kubelet wants 'nsenter' and 'mount' from util-linux: https://github.com/kubernetes/kubernetes/issues/26093#issuecomment-705994388
util-linuxMinimal # kubelet wants 'nsenter' and 'mount' from util-linux: https://github.com/kubernetes/kubernetes/issues/26093#issuecomment-705994388
conntrack-tools
runc
bash

View File

@@ -202,18 +202,6 @@ stdenv.mkDerivation (finalPackage: rec {
'';
passthru = {
# TODO (#409339): Remove this hack. We had to add it to avoid a mass rebuild
# for the 25.05 release to fix Kubernetes. Once the staging cycle referenced
# in the above PR completes, this passthru and all consumers of it should go away.
withPatches = finalPackage.overrideAttrs (prev: {
patches = lib.unique (
prev.patches or [ ]
++ [
./fix-mount-regression.patch
]
);
});
updateScript = gitUpdater {
# No nicer place to find latest release.
url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git";