Current Dir: /snap/canonical-livepatch/418/snap/
[DIR] hooks [ delete | rename ]
[FILE] manifest.yaml [ edit | delete | rename ]
[FILE] snapcraft.yaml [ edit | delete | rename ]
Viewing: /snap/canonical-livepatch/418/snap/manifest.yaml
snapcraft-version: 8.14.5
snapcraft-started-at: '2026-10-15T14:38:35.404198Z'
snapcraft-os-release-id: ubuntu
snapcraft-os-release-version-id: '22.04'
name: canonical-livepatch
version: v11.1.0
summary: Canonical Livepatch Client
description: Canonical Livepatch Client
base: core22
grade: stable
confinement: strict
apps:
canonical-livepatchd:
command: canonical-livepatchd
daemon: simple
restart-condition: on-failure
plugs:
- network-bind
- network-control
- kernel-module-control
- system-observe
- log-observe
- hardware-observe
- network-manager
- hostfs-var-local-canonical-livepatch-mode
- system-packages-doc
- run-cloud-init-instance-data-json
- hostfs-var-lib-dpkg
- etc-dpkg
- sys-kernel-livepatch
- boot-grub
environment:
DPKG_ADMINDIR: /var/lib/snapd/hostfs/var/lib/dpkg
canonical-livepatch:
command: canonical-livepatch
plugs:
- network-bind
- network-control
- kernel-module-control
- system-observe
- hardware-observe
parts:
canonical-livepatch:
source: .
stage-packages:
- ethtool=1:5.16-1ubuntu0.2
plugin: go
build-packages:
- build-essential
- git
build-environment:
- GO111MODULE: 'on'
- GOOS: linux
- TARGET_ARCH: amd64
build-snaps:
- go/1.25/stable
override-pull: |-
set -ex
snapcraftctl pull
if [[ ! -f /root/project/commit.txt ]]
then
git -C /root/project rev-parse --verify HEAD | tee /root/project/commit.txt
if [[ -f /root/project/.local_build ]]
then
git -C /root/project rev-parse --short HEAD | awk '{print $1"-devel"}' | tee /root/project/version.txt
else
git -C /root/project describe --tags --dirty --abbrev=0 --match 'client-v*' | sed 's/^client-//' | tee /root/project/version.txt
fi
fi
snapcraftctl set-version "$(cat /root/project/version.txt)"
export VERSION="$(cat /root/project/version.txt)"
gofmt -w -r "develVersion -> \"${VERSION}\"" $SNAPCRAFT_PART_SRC/internal/config/version.go
override-build: |-
set -ex
GOOS=linux GOARCH=$TARGET_ARCH CGO_ENABLED=0 go build -mod=readonly -o "${SNAPCRAFT_PART_INSTALL}/canonical-livepatch" github.com/canonical/livepatch-client/cmd/livepatch
GOOS=linux GOARCH=$TARGET_ARCH CGO_ENABLED=0 go build -mod=readonly -o "${SNAPCRAFT_PART_INSTALL}/canonical-livepatchd" github.com/canonical/livepatch-client/cmd/livepatchd
stage:
- canonical-livepatch
- canonical-livepatchd
override-prime: |-
snapcraftctl prime
touch $SNAPCRAFT_PART_SRC/internal/config/version.go
prime: []
dpkg-binary:
plugin: nil
stage-packages:
- dpkg=1.21.1ubuntu2.6
stage: []
prime: []
build-packages: []
motd:
plugin: dump
source: ./resources
organize:
../src/: resources
prime:
- resources
stage-packages: []
stage: []
build-packages: []
keys:
plugin: dump
source: ./keys
organize:
../src/: keys
prime:
- keys
stage-packages: []
stage: []
build-packages: []
hooks:
plugin: dump
source: ./snaps/client/core22/hooks
organize:
configure: snap/hooks/configure
post-refresh: snap/hooks/post-refresh
connect-plug-etc-update-motd-d: snap/hooks/connect-plug-etc-update-motd-d
disconnect-plug-etc-update-motd-d: snap/hooks/disconnect-plug-etc-update-motd-d
connect-plug-etc-kernel-postinst-d: snap/hooks/connect-plug-etc-kernel-postinst-d
disconnect-plug-etc-kernel-postinst-d: snap/hooks/disconnect-plug-etc-kernel-postinst-d
connect-plug-etc-apt-conf-d: snap/hooks/connect-plug-etc-apt-conf-d
disconnect-plug-etc-apt-conf-d: snap/hooks/disconnect-plug-etc-apt-conf-d
remove: snap/hooks/remove
stage-packages: []
stage: []
prime: []
build-packages: []
architectures:
- amd64
image-info:
build_url: https://github.com/canonical/livepatch-client/actions/runs/38752664786
build-packages: []
build-snaps: []
primed-stage-packages:
- dpkg=1.21.1ubuntu2.6