// Armbian: before each snapshot of snapper (80snapper, pre and post), copy the
// boot partition into the root. The post snapshot needs the new kernel.
// Snapper 0.10.4 (bookworm) has no plugin event for this. This file comes
// before 80snapper, so its commands run first.
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"; };
