diff options
-rwxr-xr-x | scripts/build/lb_binary_linux-image | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/lb_binary_linux-image b/scripts/build/lb_binary_linux-image index 22e67612a..43e09a95d 100755 --- a/scripts/build/lb_binary_linux-image +++ b/scripts/build/lb_binary_linux-image @@ -73,8 +73,11 @@ Check_multiarchitectures mkdir -p "${DESTDIR}" # Installing linux-image -cp chroot/boot/"${LINUX}"-* "${DESTDIR}" -cp chroot/boot/initrd.img-* "${DESTDIR}" +if [ "${LB_LINUX_PACKAGES}" != "none" ] +then + cp chroot/boot/"${LINUX}"-* "${DESTDIR}" + cp chroot/boot/initrd.img-* "${DESTDIR}" +fi case "${LB_INITRAMFS}" in live-boot) |