← Back
Editing: livepatch-kernel-installed
#!/bin/sh # # /etc/kernel/postinst.d/livepatch-kernel-installed # # Runs as a kernel postinst hook whenever a linux-image-* package is # configured. It records the package name from dpkg's maintainer-script # environment for reboot-required-check to consume later in the same apt run; # it never decides whether a reboot is required and always exits 0. INVOCATION="${DPKG_MAINTSCRIPT_PACKAGE}::${DPKG_MAINTSCRIPT_NAME}" case "$INVOCATION" in linux-image-extra*::postrm) exit 0 ;; esac NOTE="/run/canonical-livepatch-kernel-installed" printf '%s\n' "$DPKG_MAINTSCRIPT_PACKAGE" 2>/dev/null > "$NOTE"; exit 0
Save File
Cancel