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,17 +82,19 @@ esac
|
|||||||
echo $timezone > $MOUNTDIR/etc/timezone
|
echo $timezone > $MOUNTDIR/etc/timezone
|
||||||
cp /usr/share/zoneinfo/$timezone $MOUNTDIR/etc/localtime
|
cp /usr/share/zoneinfo/$timezone $MOUNTDIR/etc/localtime
|
||||||
|
|
||||||
# update module dependencies
|
if [ ! "$KERNEL_IGNORE" ]; then
|
||||||
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
# update module dependencies
|
||||||
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
|
||||||
# create universal initramfs
|
# create universal initramfs
|
||||||
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
||||||
--filesystems "ext3 ext4 reiserfs reiser4" \
|
--filesystems "ext3 ext4 reiserfs reiser4" \
|
||||||
--nomdadmconf --nolvmconf \
|
--nomdadmconf --nolvmconf \
|
||||||
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
||||||
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
||||||
|
fi
|
||||||
|
|
||||||
# don't remove static qemu for this platform
|
# don't remove static qemu for this platform
|
||||||
QEMU_COPIED_FOR_INST=0
|
QEMU_COPIED_FOR_INST=0
|
||||||
|
|
||||||
prelink
|
#prelink
|
||||||
|
Loading…
Reference in New Issue
Block a user