hirak99 / yabsnap

Btrfs Scheduled Snapshot Manager for Arch
Apache License 2.0
62 stars 2 forks source link

Pacman snapshots include /var/lib/pacman/db.lck #15

Closed Martan404 closed 1 year ago

Martan404 commented 1 year ago

The pacman snapshot gets taken a little too late and includes the /var/lib/pacman/db.lck. It's a bit annoying to remove it every time you reset a pacman snapshot

hirak99 commented 1 year ago

Yes, I've noticed this as well. The packman hook executes after the file is created. A good solution could be to have the rollbacker script remove it.

Martan404 commented 1 year ago

I saw that snapper does the same. Removing the packman.db.lck after mounting the new root works great for me in my rollback script