Closed jproctor10 closed 3 years ago
Working on a rewrite of the bash script into Python to make enhancements like these easier to implement.
Just to follow up and make this clear, the way to mark userdata important=yes
for full system upgrades will be to add the following lines to /etc/snap-pac.ini
:
[root]
important_commands = ["pacman -Syu"]
This is now in the main
branch and will be in effect in the next release.
Awesome. Seems simple and configurable with the python rewrite. Thanks
On Sun, Mar 14, 2021, 10:03 AM Wes Barnett, PhD @.***> wrote:
Just to follow up and make this clear, the way to mark userdata important=yes for full system upgrades will be to add the following lines to /etc/snap-pac.ini:
[root]important_commands = ["pacman -Syu"]
This is now in the main branch and will be in effect in the next release.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wesbarnett/snap-pac/issues/38#issuecomment-798913424, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLVHHX7KPKRQILII3ZFN63TDS625ANCNFSM4XPNDQZA .
The cleanup number algorithm has allowed for an important marker for some time https://github.com/openSUSE/snapper/commit/ea4dfd1935a24b29172d04cec1a9360209fb5726. This is done through a userdata variable
important=yes
.It would be super useful to be able to add this user variable to specific calls, namely full system updates. Doing that automatically for any
pacman -Syu
would be ideal. But, just introducing an environment variable to modify the snapper command would still enable this functionality.