From 152c18f0022798660806462869648da185d6f058 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 18 Apr 2012 12:14:27 +0545 Subject: Store PBIs in /root/var/db/pbi so they persist across reboots. Keep the existing code for old-style PKG packages in case users on 2.1 are doing anything with PKG packages by hand. In theory all proper package installs on pfSense 2.1 (FreeBSD 8.3) should use PBIs. --- etc/rc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/rc b/etc/rc index 6ff3d27..b2d2544 100755 --- a/etc/rc +++ b/etc/rc @@ -126,10 +126,14 @@ if [ "$PLATFORM" = "cdrom" ] ; then elif [ "$PLATFORM" = "embedded" ] ; then # do nothing for embedded platform elif [ "$PLATFORM" = "nanobsd" ] ; then - # Ensure that packages can be persistent across reboots + # Ensure that old-style PKG packages can be persistent across reboots /bin/mkdir -p /root/var/db/pkg /bin/rm -rf /var/db/pkg /bin/ln -s /root/var/db/pkg/ /var/db/pkg + # Ensure that PBI packages can be persistent across reboots + /bin/mkdir -p /root/var/db/pbi + /bin/rm -rf /var/db/pbi + /bin/ln -s /root/var/db/pbi/ /var/db/pbi elif [ "$PLATFORM" = "jail" ]; then # do nothing for jail platform else -- cgit v1.1