[J][linux-signed-uc22][PATCH 0/5] Unjam kernel snaps versions

Dimitri John Ledkov dimitri.ledkov at canonical.com
Tue Feb 8 15:50:37 UTC 2022


swm expects pc-kernel snaps on all arches to have the version number
as is generated from src:linux{-signed}-uc22 (enforced via tracker,
checking deb source versions, git tag, snapstore version). Previously
this was simply hardcoded in snapcraft.yaml, but to use adopt-info
style snapcraft.yaml we should be able to derive the correct version
based on the versions of debs one vendors.

To achieve this, lets add linux-image-uc22-generic on armhf/arm64,
which simply depend on the right abi vmlinuz package.

Also since the linux-image-uc22-generic now becomes a pseudo
meta-package which pulls in all the right deps on all the right
arches, add stamp files to it to indicate if it is expected to be
snapped as a kernel.efi or as a vmlinuz kernel snap. Note that soon we
may be able to switch arm64 to kernel.efi style packaging.

Separatly in ~Kernel, it was reported that adopt-info style packaging
managed to vender a newer spin of nvidia modules against -100- abi,
whilst the rest of kernel & modules were still on -99- abi. By adding
abi encoded package dependenices here, snapcraft.yaml can correctly
stage the right abi of everything (kernel, modules, nvidia drivers).

Once this is in place, simplications can be done in pc-kernel
snapcraft.yaml to "simply" stage linux-image-uc22-generic on all
arches.

Dimitri John Ledkov (5):
  debian/control: explicitely declare only amd64 as UEFI signed
  debian/control.stub: introduce unsigned packages on arm64 armhf
  debian/control.stub: add arm64 linux-image-uc22-lowlatency
  debian: provide stampfile of UC22 kernel image type
  debian/control.stub: depend on abi specific nvidia objects and
    signatures

 debian/control.stub                           | 24 +++++++++++--------
 debian/kernelefi.stamp                        |  2 ++
 debian/linux-image-uc22-generic.docs.amd64    |  1 +
 debian/linux-image-uc22-generic.docs.arm64    |  1 +
 debian/linux-image-uc22-generic.docs.armhf    |  1 +
 debian/linux-image-uc22-lowlatency.docs.amd64 |  1 +
 debian/linux-image-uc22-lowlatency.docs.arm64 |  1 +
 debian/rules                                  |  4 ++++
 debian/vmlinuz.stamp                          |  2 ++
 9 files changed, 27 insertions(+), 10 deletions(-)
 create mode 100644 debian/kernelefi.stamp
 create mode 100644 debian/linux-image-uc22-generic.docs.amd64
 create mode 100644 debian/linux-image-uc22-generic.docs.arm64
 create mode 100644 debian/linux-image-uc22-generic.docs.armhf
 create mode 120000 debian/linux-image-uc22-lowlatency.docs.amd64
 create mode 120000 debian/linux-image-uc22-lowlatency.docs.arm64
 create mode 100644 debian/vmlinuz.stamp

-- 
2.32.0




More information about the kernel-team mailing list