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:

    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:
    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?

  • Rebel Alliance Developer Netgate

    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.