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.
This commit is contained in:
2026-09-16 09:05:13 +02:00
parent aa420d3507
commit 71b1c8a106

7
90apt-zfs-snapshot.conf Normal file
View File

@@ -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";
};