]> code.ossystems Code Review - openembedded-core.git/commit
init-live : make it easier to add custom boot targets
authorJérémy Rosen <jeremy.rosen@openwide.fr>
Fri, 11 Mar 2016 10:38:31 +0000 (11:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 22:57:55 +0000 (22:57 +0000)
commit2c10ca0fe612818cb43931b969ad2af5502f1e84
tree23561d1723ac04fbb6102af658d7279c26b49f67
parent2ebf697b46c42cee8bfa6d2e6087397f8cce385c
init-live : make it easier to add custom boot targets

When booting from the live image, the label from the bootloader is passed
to init.sh. init.sh uses the label to either boot a live image or call a
script to take over and install the system.

It is possible to add new labels to the bootloader via the LABELS family of
variables, but the names in init.sh were hardcoded to install and
install-efi

this patch checks if a shell script with the same name as the label is
available instead of using a hardcoded list. Any recipe can add such file
and this provide a new boot target to the live image

Signed-off-by: Jérémy Rosen <jeremy.rosen@openwide.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initrdscripts/files/init-live.sh