track changes made by snap under /etc/systemd

Asked by MarianoAbsatz

I started using snap to install some packages, however, it seems etckeeper only tracks changes done via APT (through either apt-get, synaptic, aptitude or whichever tool that uses APT).

However, since now snap is a fully supported package manager, maybe etckeeper should have a hook to track changes after every snap install/upgrade?

Question information

Revision history for this message
actionparsnip (andrew-woodhead666) said :

You could take a copy before running the snap command, you can then diff the files.

Revision history for this message
MarianoAbsatz (el-baby) said :

Right, but that is far from the automation that etckeeper provides to APT.

I actually do something like

sudo git add /etc/systemd && sudo git commit -m "changes made by snap" /etc/systemd

what I'd like is a hook or something similar that does that. And maybe prevent snap from installing/deleting stuff if I have AVOID_COMMIT_BEFORE_INSTALL=1

Can you help with this problem?

Provide an answer of your own, or ask MarianoAbsatz for more information if necessary.

To post a message you must log in.