From 71b1c8a106b6400d644cd40f6ec2e38e7268747c Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Wed, 16 Sep 2026 09:05:13 +0200 Subject: [PATCH] build(hook): wire APT package action callbacks Install the APT configuration fragment used to invoke the snapshot helper before dpkg processes package files. Request protocol version 3 and a dedicated information file descriptor so the helper can classify package installations, upgrades, downgrades, and removals without attempting to infer actions from the apt command line. --- 90apt-zfs-snapshot.conf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 90apt-zfs-snapshot.conf diff --git a/90apt-zfs-snapshot.conf b/90apt-zfs-snapshot.conf new file mode 100644 index 0000000..a1a6101 --- /dev/null +++ b/90apt-zfs-snapshot.conf @@ -0,0 +1,7 @@ +# APT sends the package action list to the helper before invoking dpkg. +DPkg::Tools::options::/usr/local/sbin/apt-zfs-snapshot::Version "3"; +DPkg::Tools::options::/usr/local/sbin/apt-zfs-snapshot::InfoFD "3"; +DPkg::Pre-Install-Pkgs +{ + "/usr/local/sbin/apt-zfs-snapshot"; +};