[kernel-snaps-uc20][PATCH] pc: revert adopt-info key

Dimitri John Ledkov dimitri.ledkov at canonical.com
Tue Feb 8 10:10:30 UTC 2022


No package exists with version 5.4.0-99.112.1 on armhf/arm64 as
expected by swm. Thus currently it is not possible to create
consistent snaps across all architectures with the same version
number. Revert adopt-info, and use hard-coded version number once
again.

This should unblock swn state for pc-kernel on armhf/arm64.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
---
 snapcraft.yaml | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/snapcraft.yaml b/snapcraft.yaml
index 8641885175..ee89aecaf2 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -1,5 +1,5 @@
 name: pc-kernel
-adopt-info: kernel
+version: 5.4.0-99.112.1
 grade: stable
 summary: generic linux kernel
 description: The generic Ubuntu kernel package as a snap
@@ -20,11 +20,6 @@ package-repositories:
 parts:
   kernel:
     plugin: nil
-    # Set this snap version to the meta version of the package used to
-    # provide kernel.efi / vmlinuz
-    override-pull: |
-      snapcraftctl pull
-      snapcraftctl set-version "$(apt show linux-image-uc20-efi-generic linux-image-generic 2>/dev/null | sed -n 's/^Version: //p' | head -n1)"
     build-packages:
       - kmod
     stage-packages:
-- 
2.32.0




More information about the kernel-team mailing list