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