// Armbian: before each snapshot of snapper (80snapper), copy the boot
// partition into the root. Snapper 0.10.4 (bookworm) has no plugin event for
// this. Post-Invoke runs after dpkg: the post snapshot gets the new kernel.
DPkg::Pre-Invoke { "if [ -x /usr/lib/armbian-snapshots/boot-copy ] && [ -e /etc/snapper/configs/root ]; then /usr/lib/armbian-snapshots/boot-copy > /dev/null 2>&1 || true; fi"; };
DPkg::Post-Invoke { "if [ -x /usr/lib/armbian-snapshots/boot-copy ] && [ -e /etc/snapper/configs/root ]; then /usr/lib/armbian-snapshots/boot-copy > /dev/null 2>&1 || true; fi"; };
