sdk-root: add a check to avoid running kernel configuration code if kernel is not installed
This commit is contained in:
parent
9388e32701
commit
0e3743b494
@ -82,6 +82,7 @@ esac
|
||||
echo $timezone > $MOUNTDIR/etc/timezone
|
||||
cp /usr/share/zoneinfo/$timezone $MOUNTDIR/etc/localtime
|
||||
|
||||
if [ ! "$KERNEL_IGNORE" ]; then
|
||||
# update module dependencies
|
||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||
|
||||
@ -91,8 +92,9 @@ LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||
--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
|
||||
|
Loading…
Reference in New Issue
Block a user