You are not logged in.
I am referring to this snap-pac issue:
https://github.com/wesbarnett/snap-pac/issues/6
snap-pac takes snapshots via snapper as pacman hook. It takes a spnapshot as early as possibly and as late as possible. This way you have a pre and post upgrade comparision of the system when doing pacman modifications. The problem now is, that if you revert one of those snapshots (tested with the post snapshot) pacman is still locked. This means a restored system cannot do upgrades, you first need to delete the file `/var/lib/pacman/db.lck`.
Is there a way to run a pacman hook where this file is not yet written/already deleted? This would make it a bit simpler to restore snap-pac backups.
Offline
Is there a way to run a pacman hook where this file is not yet written/already deleted?
No.
Offline