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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user