Skip to content

Commit

Permalink
kernel: fix nvidia vGPU patch error
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Jan 8, 2025
1 parent 886950a commit e4fc2d7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nixos/minimal-components/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,17 @@ let
(old: {
patches = (old.patches or [ ]) ++ [
(pkgs.fetchpatch {
name = "535.183.04.patch";
url = "https://gitlab.com/polloloco/vgpu-proxmox/-/raw/master/535.183.04.patch?ref_type=heads";
sha256 = "sha256-fC8PdEh4hCF3B3Vjp/Gjk7fhRmua9/2lDUShcYbjaGc=";
url = "https://gitlab.com/polloloco/vgpu-proxmox/-/raw/master/535.216.01.patch";
sha256 = "07k0m5wqazr0hs464cfkrm87wc031xw7wkgv7nrv50m82sggr8dh";
})
];

postPatch =
(old.postPatch or "")
+ ''
substituteInPlace kernel/nvidia-vgpu-vfio/nvidia-vgpu-vfio.c \
--replace-fail "no_llseek," "NULL,"
'';
});
}
))
Expand Down

0 comments on commit e4fc2d7

Please sign in to comment.