summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-03-18 14:15:27 -0300
committerRenato Botelho <renato@netgate.com>2016-03-18 14:15:39 -0300
commitcdac78f61525f856287a6bb184411775956c2602 (patch)
tree103a16f0ab7d306474d7ca8389a33fac4a692270
parentcee365e65979d4602ec161066ed177449485fab0 (diff)
downloadpfsense-cdac78f61525f856287a6bb184411775956c2602.zip
pfsense-cdac78f61525f856287a6bb184411775956c2602.tar.gz
Make sure all unnecessary packages are removed
-rw-r--r--tools/builder_common.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index acd090e..e2829ce 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -1672,7 +1672,13 @@ install_pkg_install_ports() {
mkdir -p ${SCRATCHDIR}/pkg_cache
echo ">>> Installing built ports (packages) in chroot (${STAGE_CHROOT_DIR})... (starting)"
+ # First mark all packages as automatically installed
+ pkg_chroot ${STAGE_CHROOT_DIR} set -A 1 -a
+ # Install all necessary packages
pkg_chroot ${STAGE_CHROOT_DIR} install ${MAIN_PKG} ${custom_package_list}
+ # Make sure required packages are set as non-automatic
+ pkg_chroot ${STAGE_CHROOT_DIR} set -A 0 ${MAIN_PKG} ${custom_package_list}
+ # Remove unnecessary packages
pkg_chroot ${STAGE_CHROOT_DIR} autoremove
echo ">>> Installing built ports (packages) in chroot (${STAGE_CHROOT_DIR})... (finshied)"
}
OpenPOWER on IntegriCloud