.snap is corrupt

This is probably nothing but I've never seen it before.
With every
Code:
pkg_info|grep 'something'
I get
Code:
pkg_info: the package info for package '.snap' is corrupt
plus whatever else I was looking for.
Why does it say .snap is corrupt?
 
bbzz said:
This is probably nothing but I've never seen it before.
With every
Code:
pkg_info|grep 'something'
I get
Code:
pkg_info: the package info for package '.snap' is corrupt
, plus whatever else I was looking for.
Why does it say .snap is corrupt?

Because it's not a package directory, it's created by mksnap_ffs(8). How you got one in /var/db/pkg is another question. Make sure it isn't anything you need and then delete it.
 
Oh. That's because /var/db/pkg is a separate ufs filesystem I was dumping. Makes sense now.
 
Usually when you use UFS /var/db/pkg is not a separate partition (/var is). In my case I had /var sitting on zfs but /var/db/pkg on UFS. Whenever you dump a live filesystem .snap gets created.
So, there's nothing to fix. If you don't dump UFS, just delete it. If you are dumping UFS it will get created again.
Eventually you'll just throw away UFS.
 
Back
Top