diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2024-03-05 14:34:25 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-04-04 14:05:03 +0100 |
commit | 0cd45e051c71bf731cd1a5d8809bcb52bd31454f (patch) | |
tree | a3951847fb5edb35a3e19f257d1f33cdd1b61aee /meta/classes-recipe/image-live.bbclass | |
parent | 905b41d6bf059d55925584a194de3bd327b41e91 (diff) | |
download | poky-0cd45e051c71bf731cd1a5d8809bcb52bd31454f.tar.gz |
image-live.bbclass: Adjust the default value for INITRD_LIVE
The ${INITRAMFS_FSTYPES} may contains multi filesystem types,
such as "cpio.gz cpio.xz". So it can't be used directly in setting
of the default INITRD_LIVE. We choose the first filesystem type
in ${INITRAMFS_FSTYPES} for the default INITRD_LIVE.
(From OE-Core rev: aa1a55a90ea86349734e2b62288d54863e01c7b8)
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/image-live.bbclass')
-rw-r--r-- | meta/classes-recipe/image-live.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/image-live.bbclass b/meta/classes-recipe/image-live.bbclass index da919d52f9..d2e95ef51c 100644 --- a/meta/classes-recipe/image-live.bbclass +++ b/meta/classes-recipe/image-live.bbclass | |||
@@ -38,7 +38,7 @@ do_bootimg[depends] += "dosfstools-native:do_populate_sysroot \ | |||
38 | LABELS_LIVE ?= "boot install" | 38 | LABELS_LIVE ?= "boot install" |
39 | ROOT_LIVE ?= "root=/dev/ram0" | 39 | ROOT_LIVE ?= "root=/dev/ram0" |
40 | INITRD_IMAGE_LIVE ?= "${MLPREFIX}core-image-minimal-initramfs" | 40 | INITRD_IMAGE_LIVE ?= "${MLPREFIX}core-image-minimal-initramfs" |
41 | INITRD_LIVE ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}${IMAGE_MACHINE_SUFFIX}.${INITRAMFS_FSTYPES}" | 41 | INITRD_LIVE ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}${IMAGE_MACHINE_SUFFIX}.${@d.getVar('INITRAMFS_FSTYPES').split()[0]}" |
42 | 42 | ||
43 | LIVE_ROOTFS_TYPE ?= "ext4" | 43 | LIVE_ROOTFS_TYPE ?= "ext4" |
44 | ROOTFS ?= "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${LIVE_ROOTFS_TYPE}" | 44 | ROOTFS ?= "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${LIVE_ROOTFS_TYPE}" |