Project

General

Profile

Actions

Bug #2305

closed

PBI db stored on var does not survive reboot

Added by Phillip Davis about 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Package System
Target version:
Start date:
03/21/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:

Description

On FreeBSD 8.3 the PBI system stores its database in /var/db/pbi - this is where it remembers what FreeBSD packages are installed. On nanobsd this is a RAMdisk and does not survive a reboot. So PBI's "memory" is lost, but the actual PBI packages are happily in /usr/pbi.
If the system has been rebooted since the package was installed, then the removal code cannot trace the location of the PBI package files. So package deletion does not cleanup the files.
So far, the only real effect I can see is that disk space is used by files in /usr/pbi/... that are no longer needed. If the package is reinstalled, the old files are simply overlayed by the re-installation.
Perhaps the PBI db should be moved somewhere that survives reboot?
Or perhaps this issue has no really important downstream effects and can just be ignored?

Actions

Also available in: Atom PDF