[kernel-snaps-uc22][PATCH 1/1] snapcraft.yaml: add check for nvidia firmware files
Hui Wang
hui.wang at canonical.com
Mon Nov 25 01:09:46 UTC 2024
On 11/25/24 08:38, Aaron Jauregui wrote:
> 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
see sth fishy, trim-firmware?
> craftctl default
> +
> + # Fail build if nvidia firmware is not present
> + test -e "$CRAFT_PART_INSTALL"/lib/firmware/nvidia
More information about the kernel-team
mailing list