[SRU][kernel-snaps-uc24.04/pc][PATCH 1/1] snapcraft.yaml: Include nvidia firmware in the nouveau component
Wen-chien Jesse Sung
jesse.sung at canonical.com
Tue Sep 23 15:01:01 UTC 2025
BugLink: https://launchpad.net/bugs/2125476
Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
---
snapcraft.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 5f3ba6a..89ada29 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -72,6 +72,9 @@ parts:
# Move nouveau out of the file tree
find "$CRAFT_PART_INSTALL" -name nouveau.ko.zst -exec mv '{}' "$CRAFT_PART_INSTALL" \;
+ # Move nvidia firmware as well
+ mkdir -p "$CRAFT_PART_INSTALL"/nv-fw/firmware
+ mv "$CRAFT_PART_INSTALL"/lib/firmware/nvidia "$CRAFT_PART_INSTALL"/nv-fw/firmware/
# Move hooks to staging area so they can be picked up by organize
cp -p "$CRAFT_STAGE"/snap-tools/hooks/module/* "$CRAFT_PART_INSTALL"
@@ -80,6 +83,7 @@ parts:
organize:
# Organize nouveau into a dedicated component
nouveau.ko.zst: (component/nouveau-ko)/
+ nv-fw: (component/nouveau-ko)/
install.module: (component/nouveau-ko)/snap/hooks/install
post-refresh.module: (component/nouveau-ko)/snap/hooks/post-refresh
remove.module: (component/nouveau-ko)/snap/hooks/remove
--
2.48.1
More information about the kernel-team
mailing list