Package deletion does not delete the package pbi dirs
-
The PBI push-button-installer system keeps a database of what PBI packages are on the system. This is in /var/db/pbi . On nanobsd the /var mount point is only a RAM disk, it all disappears after a reboot. After installing a package, you can:
/usr/local/sbin/pbi_info
and get a list of the package components that were just installed.
Various installation code uses this in its processing.
After rebooting, the output is blank.
Then, delete the package. Any use of /usr/local/sbin/pbi_info in the removal scripts won't be able to find any PBI data. But there are no error messages logged.
Then look in:
/usr/pbi/package-name
e.g. /usr/pbi/squid-i386
The files are all there.
And the sym links to places like /usr/local/ are also there. The last squid.conf is still there.
The GUI elements and startup have been modified so that none of it starts, so I guess it does no harm. If the package is installed again then the installation will overwrite all this anyway.
Is this the intended design? Or is it just an accident due to /var/db/pbi disappearing?
Is this likely to cause a problem some time later? -
Probably hadn't been observed by anyone using PBIs yet. Open a ticket in redmine and we'll see what can be done. I think for freebsd packages we keep that in /root or /conf and copy/link it back to /var somehow, but I could be misremembering that.
-
Redmine ticket 2305 opened.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy