[kernel-snaps-uc22][PATCH 1/1] snapcraft.yaml: add check for nvidia firmware files
Aaron Jauregui
aaron.jauregui at canonical.com
Mon Nov 25 00:38:34 UTC 2024
BugLink: https://bugs.launchpad.net/bugs/2089509
Nvidia firmware files have sporadically gone missing in released
pc-kernel snap revisions for an unknown reason. Add a test to fail if
the nvidia firmware directory does not exist to prevent incorrect builds
from being released and to aid in finding the root cause of the issue.
Signed-off-by: Aaron Jauregui <aaron.jauregui at canonical.com>
---
snapcraft.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/snapcraft.yaml b/snapcraft.yaml
index d4832c3..97fc296 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -43,3 +43,6 @@ parts:
ls "$CRAFT_PART_INSTALL"/lib/firmware/
bash -eux "$CRAFT_PART_SRC"/trim-firmware "$CRAFT_PART_INSTALL"/lib
craftctl default
+
+ # Fail build if nvidia firmware is not present
+ test -e "$CRAFT_PART_INSTALL"/lib/firmware/nvidia
--
2.43.0
More information about the kernel-team
mailing list