diff options
Diffstat (limited to 'meta/classes/image-vm.bbclass')
-rw-r--r-- | meta/classes/image-vm.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/image-vm.bbclass b/meta/classes/image-vm.bbclass index 3df2c362e0..0632667084 100644 --- a/meta/classes/image-vm.bbclass +++ b/meta/classes/image-vm.bbclass | |||
@@ -3,6 +3,11 @@ SYSLINUX_PROMPT ?= "0" | |||
3 | SYSLINUX_LABELS = "boot" | 3 | SYSLINUX_LABELS = "boot" |
4 | LABELS_append = " ${SYSLINUX_LABELS} " | 4 | LABELS_append = " ${SYSLINUX_LABELS} " |
5 | 5 | ||
6 | # Using an initramfs is optional. Enable it by setting INITRD_IMAGE. | ||
7 | INITRD_IMAGE ?= "" | ||
8 | INITRD ?= "${@'${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE}-${MACHINE}.cpio.gz' if '${INITRD_IMAGE}' else ''}" | ||
9 | do_bootdirectdisk[depends] += "${@'${INITRD_IMAGE}:do_rootfs' if '${INITRD_IMAGE}' else ''}" | ||
10 | |||
6 | # need to define the dependency and the ROOTFS for directdisk | 11 | # need to define the dependency and the ROOTFS for directdisk |
7 | do_bootdirectdisk[depends] += "${PN}:do_rootfs" | 12 | do_bootdirectdisk[depends] += "${PN}:do_rootfs" |
8 | ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext4" | 13 | ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext4" |