From 0e3743b49472dee3bd7e50e03bff0df073f59ca7 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 5 Oct 2011 15:47:02 +0200 Subject: [PATCH] sdk-root: add a check to avoid running kernel configuration code if kernel is not installed --- platforms/sdk-root/post.inc.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/platforms/sdk-root/post.inc.sh b/platforms/sdk-root/post.inc.sh index 83aaa11..777d93c 100644 --- a/platforms/sdk-root/post.inc.sh +++ b/platforms/sdk-root/post.inc.sh @@ -82,17 +82,19 @@ esac echo $timezone > $MOUNTDIR/etc/timezone cp /usr/share/zoneinfo/$timezone $MOUNTDIR/etc/localtime -# update module dependencies -chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER} +if [ ! "$KERNEL_IGNORE" ]; then + # update module dependencies + chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER} -# create universal initramfs -LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \ - --filesystems "ext3 ext4 reiserfs reiser4" \ - --nomdadmconf --nolvmconf \ - /boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \ - ${KERNEL_MAJVER}${KERNEL_EXTRAVER} + # create universal initramfs + LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \ + --filesystems "ext3 ext4 reiserfs reiser4" \ + --nomdadmconf --nolvmconf \ + /boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \ + ${KERNEL_MAJVER}${KERNEL_EXTRAVER} +fi # don't remove static qemu for this platform QEMU_COPIED_FOR_INST=0 -prelink +#prelink