diff --git a/config/templates/config-example.conf b/config/templates/config-example.conf index 9291dba6e0..8a3d488257 100644 --- a/config/templates/config-example.conf +++ b/config/templates/config-example.conf @@ -20,3 +20,4 @@ BUILD_ALL="no" # cycle through available boards and make images or kernel/u-b # set KERNEL_ONLY to "yes" or "no" to build all packages/all images BSPFREEZE="" # freeze armbian packages (u-boot, kernel, dtb) +INSTALL_HEADERS="" # install kernel headers package \ No newline at end of file diff --git a/lib/distributions.sh b/lib/distributions.sh index 8e29391d5b..6224e1a394 100644 --- a/lib/distributions.sh +++ b/lib/distributions.sh @@ -101,8 +101,10 @@ install_common() display_alert "Installing u-boot" "$CHOSEN_UBOOT" "info" chroot $SDCARD /bin/bash -c "DEVICE=/dev/null dpkg -i /tmp/debs/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1 - display_alert "Installing headers" "${CHOSEN_KERNEL/image/headers}" "info" - chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/${CHOSEN_KERNEL/image/headers}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1 + if [[ $INSTALL_HEADERS == "yes" ]]; then + display_alert "Installing headers" "${CHOSEN_KERNEL/image/headers}" "info" + chroot $SDCARD /bin/bash -c "dpkg -i /tmp/debs/${CHOSEN_KERNEL/image/headers}_${REVISION}_${ARCH}.deb" >> $DEST/debug/install.log 2>&1 + fi # install firmware #if [[ -f $SDCARD/tmp/debs/${CHOSEN_KERNEL/image/firmware-image}_${REVISION}_${ARCH}.deb ]]; then