diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-18 14:15:27 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-18 14:15:39 -0300 |
commit | cdac78f61525f856287a6bb184411775956c2602 (patch) | |
tree | 103a16f0ab7d306474d7ca8389a33fac4a692270 | |
parent | cee365e65979d4602ec161066ed177449485fab0 (diff) | |
download | pfsense-cdac78f61525f856287a6bb184411775956c2602.zip pfsense-cdac78f61525f856287a6bb184411775956c2602.tar.gz |
Make sure all unnecessary packages are removed
-rw-r--r-- | tools/builder_common.sh | 6 |
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)" } |