From 651c8aebd2960123d14bf6715e3a0f149b2c9b98 Mon Sep 17 00:00:00 2001 From: "Cody A.W. Somerville" Date: Wed, 20 Jul 2011 08:48:07 +0200 Subject: Updating lb_binary_linux-image to only copy over kernel and initrd if LB_LINUX_PACKAGES doesn't equal 'none'. --- scripts/build/lb_binary_linux-image | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/build') 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) -- cgit v1.2.3