Skip to content

Commit

Permalink
linux_5_4_hardened: mark as broken
Browse files Browse the repository at this point in the history
Smoketest fails with

    machine # [    3.785769] systemd[1]: dev-hugepages.mount: Failed to spawn executor: Argument list too long
    machine # [    3.788689] systemd[1]: dev-hugepages.mount: Failed to spawn 'mount' task: Argument list too long
    machine # [    3.790100] systemd[1]: dev-hugepages.mount: Failed with result 'resources'.
    machine # [    3.791572] systemd[1]: Failed to mount Huge Pages File System.
  • Loading branch information
Ma27 committed Sep 23, 2024
1 parent 904a34e commit 62c09a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/top-level/linux-kernels.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ let
linux = kernel;
};

markBroken = drv: drv.overrideAttrs ({ meta ? {}, ... }: {
meta = meta // { broken = true; };
});

# Hardened Linux
hardenedKernelFor = kernel': overrides:
let
Expand Down Expand Up @@ -259,10 +263,10 @@ in {

linux_hardened = hardenedKernelFor packageAliases.linux_default.kernel { };

linux_5_4_hardened = hardenedKernelFor kernels.linux_5_4 {
linux_5_4_hardened = markBroken (hardenedKernelFor kernels.linux_5_4 {
stdenv = gcc10Stdenv;
buildPackages = buildPackages // { stdenv = buildPackages.gcc10Stdenv; };
};
});
linux_5_10_hardened = hardenedKernelFor kernels.linux_5_10 { };
linux_5_15_hardened = hardenedKernelFor kernels.linux_5_15 { };
linux_6_1_hardened = hardenedKernelFor kernels.linux_6_1 { };
Expand Down

0 comments on commit 62c09a3

Please sign in to comment.