You are not logged in.

#1 2016-09-08 19:02:24

NicoHood
Package Maintainer (PM)
Registered: 2016-09-08
Posts: 6

No pacman lock in pacman hook

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

#2 2016-09-09 01:40:09

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: No pacman lock in pacman hook

NicoHood wrote:

Is there a way to run a pacman hook where this file is not yet written/already deleted?

No.

Offline

Board footer

Powered by FluxBB