diff options
author | Renato Botelho <renato@netgate.com> | 2016-06-27 17:48:02 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-06-27 17:48:02 -0300 |
commit | 7d460897367410a3eaa8a68531e4b645990fbdc9 (patch) | |
tree | 801ba346b46f85b4bc9a4137483c02faed49d1ad /tools/builder_common.sh | |
parent | 33306accaf76333f4da1c6e97c0c674d11c1c5bc (diff) | |
download | pfsense-7d460897367410a3eaa8a68531e4b645990fbdc9.zip pfsense-7d460897367410a3eaa8a68531e4b645990fbdc9.tar.gz |
Install kernel on installer image
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index f805480..877aed7 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -1659,6 +1659,8 @@ buildkernel() { # Imported from FreeSBIE installkernel() { + local _destdir=${1:-${KERNEL_DESTDIR}} + if [ -z "${KERNCONF}" ]; then echo ">>> ERROR: No kernel configuration defined probably this is not what you want! STOPPING!" | tee -a ${LOGFILE} print_error_pfS @@ -1670,10 +1672,10 @@ installkernel() { fi mkdir -p ${STAGE_CHROOT_DIR}/boot - makeargs="${MAKEJ} DESTDIR=${KERNEL_DESTDIR}" + makeargs="${MAKEJ} DESTDIR=${_destdir}" echo ">>> Builder is running the command: script -aq $LOGFILE make ${makeargs} installkernel KERNCONF=${KERNCONF}" | tee -a $LOGFILE (script -aq $LOGFILE make -C ${FREEBSD_SRC_DIR} ${makeargs} installkernel KERNCONF=${KERNCONF} || print_error_pfS;) | egrep '^>>>' - gzip -f9 $KERNEL_DESTDIR/boot/kernel/kernel + gzip -f9 ${_destdir}/boot/kernel/kernel } # Launch is ran first to setup a few variables that we need |