Current Dir: /snap/canonical-livepatch/418/meta/
[DIR] gui [ delete | rename ]
[DIR] hooks [ delete | rename ]
[FILE] snap.yaml [ edit | delete | rename ]
Viewing: /snap/canonical-livepatch/418/meta/snap.yaml
name: canonical-livepatch
version: v11.1.0
summary: Canonical Livepatch Client
description: Canonical Livepatch Client
architectures:
- amd64
base: core22
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
confinement: strict
grade: stable
environment:
LD_LIBRARY_PATH: ${SNAP_LIBRARY_PATH}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}:$SNAP/lib
PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH
plugs:
etc-update-motd-d:
interface: system-files
write:
- /etc/update-motd.d/99-livepatch-kernel-upgrade-required
hostfs-var-local-canonical-livepatch-mode:
interface: system-files
read:
- /var/lib/snapd/hostfs/var/local/canonical_livepatch_mode
run-cloud-init-instance-data-json:
interface: system-files
read:
- /run/cloud-init/instance-data.json
hostfs-var-lib-dpkg:
interface: system-files
read:
- /var/lib/snapd/hostfs/var/lib/dpkg
etc-dpkg:
interface: system-files
read:
- /etc/dpkg
sys-kernel-livepatch:
interface: system-files
read:
- /sys/kernel/livepatch
etc-kernel-postinst-d:
interface: system-files
write:
- /etc/kernel/postinst.d/livepatch-kernel-installed
etc-apt-conf-d:
interface: system-files
write:
- /etc/apt/apt.conf.d/20canonical-livepatch
boot-grub:
interface: system-files
read:
- /var/lib/snapd/hostfs/boot/grub/grub.cfg
- /var/lib/snapd/hostfs/boot/grub/grubenv
slots:
machine-token:
interface: content
content: canonical-livepatch-machine-token
source:
read:
- $SNAP_COMMON/livepatch-token
hooks:
connect-plug-etc-update-motd-d:
plugs:
- etc-update-motd-d
disconnect-plug-etc-update-motd-d:
plugs:
- etc-update-motd-d
connect-plug-etc-kernel-postinst-d:
plugs:
- etc-kernel-postinst-d
disconnect-plug-etc-kernel-postinst-d:
plugs:
- etc-kernel-postinst-d
connect-plug-etc-apt-conf-d:
plugs:
- etc-apt-conf-d
disconnect-plug-etc-apt-conf-d:
plugs:
- etc-apt-conf-d
post-refresh:
plugs:
- etc-update-motd-d
- etc-kernel-postinst-d
- etc-apt-conf-d
remove:
plugs:
- etc-update-motd-d
- etc-kernel-postinst-d
- etc-apt-conf-d
layout:
/usr/share/dpkg:
bind: $SNAP/usr/share/dpkg
/usr/bin/dpkg:
bind-file: $SNAP/usr/bin/dpkg
/etc/dpkg/dpkg.cfg:
bind-file: $SNAP/etc/dpkg/dpkg.cfg