All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Smith, Virgil" <Virgil.Smith@flir.com>
To: Oliver <urnen81@yahoo.es>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: recipe removing (some)contents of /etc
Date: Thu, 14 May 2015 16:14:42 +0000	[thread overview]
Message-ID: <F14AEF751653024287138321000C846AF4821E43@BOS-DAG1.zone1.flir.net> (raw)
In-Reply-To: <641241749.3202512.1431617240967.JavaMail.yahoo@mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 2127 bytes --]

This seems to bite a lot of people (myself included).
Change
IMAGE_INSTALL += “canlogger”
to
IMAGE_INSTALL_append = “ canlogger”
or possibly better
EXTRA_IMAGE_INSTALL_append = “ canlogger”

+= is evaluated immediately during parsing just like = and therefore behaves just like = if the variable did not yet exist.  This then defeats the ?= assignment of IMAGE_INSTALL in your distro/.conf, image recipe, or core-image.bbclass.

The “override syntax” _append gets appended POST parsing and so does not preempt the ?= default assignment.

From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Oliver
Sent: Thursday, May 14, 2015 10:27 AM
To: yocto@yoctoproject.org
Subject: [yocto] recipe removing (some)contents of /etc

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.

Does someone sees something wrong?

#####
DESCRIPTION = "Start CAN services logging"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302<file:///\\$%7bCOMMON_LICENSE_DIR%7d\MIT;md5=0835ade698e0bcf8506ecda2f7b4f302>"
PR = "r0"

SRC_URI += "file://canlogger<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
#####


________________________________

Notice to recipient: This email is meant for only the intended recipient of the transmission, and may be a communication privileged by law, subject to export control restrictions or that otherwise contains proprietary information. If you receive this email by mistake, please notify us immediately by replying to this message and then destroy it and do not review, disclose, copy or distribute it. Thank you in advance for your cooperation.

[-- Attachment #2: Type: text/html, Size: 8694 bytes --]

  parent reply	other threads:[~2015-05-14 16:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-14 15:27 recipe removing (some)contents of /etc Oliver
2015-05-14 15:36 ` Gary Thomas
2015-05-14 16:14 ` Smith, Virgil [this message]
2015-05-14 16:18   ` Robert P. J. Day
2015-05-14 16:34     ` Smith, Virgil
2015-05-14 16:41       ` Paul Eggleton
2015-05-14 16:48         ` Robert P. J. Day
2015-05-14 21:36         ` Oliver
2015-05-14 22:01           ` Gary Thomas
2015-05-15 11:07             ` Oliver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F14AEF751653024287138321000C846AF4821E43@BOS-DAG1.zone1.flir.net \
    --to=virgil.smith@flir.com \
    --cc=urnen81@yahoo.es \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.