[SRU][kernel-snaps-uc24.04/pc][PATCH 1/2] snapcraft.yaml: add pc-kernel configure hook

Aaron Jauregui aaron.jauregui at canonical.com
Tue Jun 17 04:05:20 UTC 2025


BugLink: https://bugs.launchpad.net/bugs/2114786

Include a configure hook in the pc-kernel snap as the primary interface
between the user and Nvidia components. This is the intended mechanism
to install components both interactively and by ubuntu-drivers, as well
as switching between installed components and handling EOL driver
component logic.

Signed-off-by: Aaron Jauregui <aaron.jauregui at canonical.com>
---
 snapcraft.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 57df983..400fc8c 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -66,6 +66,7 @@ parts:
 
       # Move hooks to staging area so they can be picked up by organize
       mv hooks/module/* "$CRAFT_PART_INSTALL"
+      mv hooks/pc-kernel/configure.pc-kernel "$CRAFT_PART_INSTALL"
 
     organize:
       # Organize nouveau into a dedicated component
@@ -73,6 +74,7 @@ parts:
       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
+      configure.pc-kernel: snap/hooks/configure
 
     override-stage: |
 
-- 
2.43.0




More information about the kernel-team mailing list