[SRU][kernel-snaps-uc24.04/pc][PATCH 2/2] snapcraft.yaml: fix respin fetch

Andy Whitcroft apw at canonical.com
Fri Mar 21 21:44:10 UTC 2025


On Thu, Mar 20, 2025 at 12:58 AM Aaron Jauregui <
aaron.jauregui at canonical.com> wrote:

> Add fix for fetching respun ko component packages.
>
> Signed-off-by: Aaron Jauregui <aaron.jauregui at canonical.com>
> ---
>  snapcraft.yaml | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/snapcraft.yaml b/snapcraft.yaml
> index 1d4c992..e3e0ab1 100644
> --- a/snapcraft.yaml
> +++ b/snapcraft.yaml
> @@ -125,11 +125,16 @@ parts:
>      override-build: |
>        craftctl default
>        version=$(craftctl get version)
> +      objects_ver=$(apt-cache show
> linux-objects-nvidia-550-server-"${version%.*}"-generic| grep -e "^Version:
> " | head -n1 | awk  '{print $2}')
> +
> +      # make sure version strings match
> +      [[ "$objects_ver" == "$version"* ]]
> +
>

Fundamentally you appear here to be looking up the versions of the LRM
packages and ensuring they are within the range possible before using
them.  Given SWM has now gained the ability to supply all the
nvidia-graphics-driver-* version and has a channel for that, it seems
logical it should also send you the versions of the packages: signed for
linux-image-uc-generic; and lrm for these LRM pieces?


>        # Duplicate libc causing conflicts, deleting to use system's libc
>        rm -f -- "$CRAFT_PART_INSTALL/usr/lib/$(uname
> -m)-linux-gnu/libc.so.6"
> -      apt-get download
> linux-objects-nvidia-550-server-"${version%.*}"-generic="$version" \
> -          linux-signatures-nvidia-"${version%.*}"-generic="$version"
> +      apt-get download
> linux-objects-nvidia-550-server-"${version%.*}"-generic="$objects_ver" \
> +          linux-signatures-nvidia-"${version%.*}"-generic="$objects_ver"
>        for i in *.deb; do dpkg-deb -x "$i" nvidia-objects ;  done
>
>        mkdir -p "$CRAFT_PART_INSTALL"/bits
>


-apw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250321/d6a4fa12/attachment.html>


More information about the kernel-team mailing list