track changes made by snap under /etc/systemd

Asked by MarianoAbsatz on 2019-11-07

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

Language:
English Edit question
Status:
Open
For:
Ubuntu etckeeper Edit question
Assignee:
No assignee Edit question
Last query:
2019-11-08
Last reply:
2019-11-08

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

MarianoAbsatz (el-baby) said : #2

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.