wesbarnett / snap-pac

Pacman hooks that use snapper to create pre/post btrfs snapshots like openSUSE's YaST
GNU General Public License v2.0
183 stars 14 forks source link

`Invalid snapshot '--type'.` for all post snapshots (was working before) #49

Closed patarapolw closed 3 years ago

patarapolw commented 3 years ago

Describe the bug

Every time I tried to install something with pacman, it says

Invalid snapshot '--type'.
==> root: 

To Reproduce

pacman -S anything

Expected behavior

No errors. Create numbered snapshots as always.

Additional context

Last entry in Snapper GUI is python-poetry

image

wesbarnett commented 3 years ago

Hi, thanks for the report. Can you post a full example of the pacman command you are running, including all arguments?

patarapolw commented 3 years ago

Apparently, I deleted that Arch, which I installed with https://github.com/Deebble/arch-btrfs-install-guide

Now, I installed a new Arch with https://github.com/tommytran732/Arch-Setup-Script/blob/main/install.sh which also has snap-pac, but it no longer has errors.

WhiteHusky commented 3 years ago

I might have an idea why this might occur: .snapshots might be world writable. I followed some bad instructions and using snapper-gui spit out some warnings regarding this in the terminal when trying to diagnose it. When it was fixed, snap-pac started working again.