Snap-pac can not create snapshot when pacman update

Hi, I am new here.

I installed encrypted BTRFS with snapper and snap-pac, but it can’t create a snapshot when I manually run a pacman update with a bunch of packages.

Subvolume list:

ID 256 gen 277 top level 5 path @
ID 257 gen 277 top level 5 path @home
ID 258 gen 239 top level 5 path @cache
ID 259 gen 277 top level 5 path @log
ID 260 gen 215 top level 256 path .snapshots
ID 262 gen 277 top level 257 path @home/.snapshots

I can create a snapshot manually in Btrfs Assistant without any problem, but snap-pac can not.

Does anyone know how to fix snap-pac issue?

I’m not sure but i use btrfs-assistant, snapper-support, btrfsmaintenance which i think snap-pac is a dependency of snapper-support.

Edit: My system is not encrypted either and i use grub.

You need to create a Snapper config before snap-pac will work. https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration You can use Btrfs Assistant to create the config if you wish.

By default, snap-pac will use the root config, although it is configurable if you want a different behavior. https://barnettphd.com/snap-pac/configuration.html

Ah, I have created a “System” config from Btrfs Assistant. The config name is not default.

I have to adjust /etc/snap-pac.ini

[System]
snapshot = True

That works now, thank you.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.