]> code.ossystems Code Review - openembedded-core.git/commit
initramfs-framework: module to support boot live image
authorNg, Wei Tee <wei.tee.ng@intel.com>
Sun, 23 Jul 2017 23:51:55 +0000 (16:51 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jul 2017 21:20:16 +0000 (22:20 +0100)
commit4d3300e85a8e65207a415b9cf84c9fa1f71b0406
tree59e3e44f8b991e24a4c29be7e56047a8e96e0e1c
parent96c54b2ceee7cdeb40efaa3f224766c5ea65d181
initramfs-framework: module to support boot live image

setup-live module is a new module being introduced to integrate the
functionality of init-live.sh into new scriptlet named setup-live in
order to support the live boot image. The udev-extraconf rdepends is
being added to perform automounting. It gets to run before the rootfs
and finish module.

The setup-live scriplet include the changes for:

- Create a conditional loop for the bootparam_root variable. If it is
not set, then it will boot from ROOT_IMAGE. Else, it will boot normally
which is not from removable media.

- Gives a standard path to the original boot disk mount which can be
used to. While /media/sda is a good guess, it isn't always right, nor
is it a good assumption that only one boot disk is in the system.

- The current rootfs module has no support for rootfs images, currently
it only support for rootfs partitions for wic image. Therefore, there
is a need to assign the rootfs image for live image.

[YOCTO #11701]

Signed-off-by: Ng, Wei Tee <wei.tee.ng@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/setup-live [new file with mode: 0644]
meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb