[yocto] recipe removing (some)contents of /etc

Gary Thomas gary at mlbassoc.com
Thu May 14 08:36:15 PDT 2015


On 2015-05-14 09:27, Oliver wrote:
> Hello
>
> I have the below's simple recipe(starting a script in sysV runlevel 2), but when I add it to the image with
> IMAGE_INSTALL += "canlogger"
> in my local.conf, most of the contents of /etc gets removed/overwritten making the system unbootable.

What image are you building?

You should probably use this line instead
   CORE_IMAGE_EXTRA_INSTALL = "canlogger"

>
> Does someone sees something wrong?
>
> #####
> DESCRIPTION = "Start CAN services logging"
> SECTION = "examples"
> LICENSE = "MIT"
> LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
> PR = "r0"
>
> SRC_URI += "file://canlogger"
>
> INITSCRIPT_NAME = "canlogger"
> INITSCRIPT_PARAMS = "start 98 2 ."
>
> do_install() {
>      install -d ${D}${sysconfdir}/init.d/
>      install -m 0755 ${WORKDIR}/canlogger ${D}${sysconfdir}/init.d/canlogger
> }
>
> inherit update-rc.d
> #####
>
>
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list