diff options
| -rw-r--r-- | meta/classes/bootimg.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index 450e31b4f6..7bd367b9ae 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
| @@ -59,6 +59,10 @@ build_boot_bin() { | |||
| 59 | syslinux ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg | 59 | syslinux ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg |
| 60 | chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg | 60 | chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg |
| 61 | 61 | ||
| 62 | cd ${DEPLOY_DIR_IMAGE} | ||
| 63 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg | ||
| 64 | ln -s ${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg | ||
| 65 | |||
| 62 | #Create an ISO if we have an INITRD | 66 | #Create an ISO if we have an INITRD |
| 63 | if [ -n "${INITRD}" ] && [ -s "${INITRD}" ] && [ "${NOISO}" != "1" ] ; then | 67 | if [ -n "${INITRD}" ] && [ -s "${INITRD}" ] && [ "${NOISO}" != "1" ] ; then |
| 64 | install -d ${ISODIR} | 68 | install -d ${ISODIR} |
| @@ -87,6 +91,11 @@ build_boot_bin() { | |||
| 87 | -b isolinux/isolinux.bin -c isolinux/boot.cat -r \ | 91 | -b isolinux/isolinux.bin -c isolinux/boot.cat -r \ |
| 88 | -no-emul-boot -boot-load-size 4 -boot-info-table \ | 92 | -no-emul-boot -boot-load-size 4 -boot-info-table \ |
| 89 | ${S}/cd/ | 93 | ${S}/cd/ |
| 94 | |||
| 95 | cd ${DEPLOY_DIR_IMAGE} | ||
| 96 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso | ||
| 97 | ln -s ${IMAGE_NAME}.iso ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso | ||
| 98 | |||
| 90 | fi | 99 | fi |
| 91 | } | 100 | } |
| 92 | 101 | ||
