diff options
author | Phil Davis <phil.davis@world.inf.org> | 2012-04-18 12:14:27 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2012-04-18 12:14:27 +0545 |
commit | 152c18f0022798660806462869648da185d6f058 (patch) | |
tree | e916b2981f614fe73605192f16d69726b9705f77 /etc | |
parent | 2f0a49e922e282a1abc641ec9d489f2678e069be (diff) | |
download | pfsense-152c18f0022798660806462869648da185d6f058.zip pfsense-152c18f0022798660806462869648da185d6f058.tar.gz |
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.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |