[PATCH 1/3] Remove nouveau when shipping nvidia driver
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Wed Mar 8 16:39:53 UTC 2023
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
snapcraft.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 96b5b53330..5391553aef 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -44,6 +44,8 @@ parts:
if [ -d "$SNAPCRAFT_PART_INSTALL"/usr/share/doc/linux-signatures-nvidia-*-generic ]; then
cd "$SNAPCRAFT_PART_INSTALL"/lib/modules/*/kernel/nvidia-*/bits
sh BUILD
+ # Remove nouveau
+ rm -rf "$SNAPCRAFT_PART_INSTALL"/lib/modules/*/kernel/drivers/gpu/drm/nouveau
# Update depmod
depmod -b "$SNAPCRAFT_PART_INSTALL" $(basename "$SNAPCRAFT_PART_INSTALL"/lib/modules/*)
# Trim firmware
--
2.34.1
More information about the kernel-team
mailing list