Skip to content

enhance snapper logging

Anchal Nigam requested to merge imthenachoman/snapper:debian/sid into debian/sid

This update includes an enhancement to Debian's snapper package.

The current (as of 2023-07-23) snapper package includes an apt configuration that will automatically take snapper snapshots when you use apt to install/remove/etc. It will add use "apt" as the description of the pre/post snapshot.

With the below changes to the /etc/apt/apt.conf.d/80snapper file and associated dpkg-pre-post-snapper.sh file, snapper will include the full apt command, including the arguments, in the snapshot description.

For example:

$ sudo apt install funky
...

$ snapper list
...
525  | pre    |       | Sat 22 Jul 2023 11:32:47 PM EDT | root | number   | apt; apt install funky  |
526  | post   |   525 | Sat 22 Jul 2023 11:32:48 PM EDT | root | number   | apt; apt install funky  |

Merge request reports

Loading