All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: recipe removing (some)contents of /etc
Date: Thu, 14 May 2015 09:36:15 -0600	[thread overview]
Message-ID: <5554C0EF.7030300@mlbassoc.com> (raw)
In-Reply-To: <641241749.3202512.1431617240967.JavaMail.yahoo@mail.yahoo.com>

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
------------------------------------------------------------


  reply	other threads:[~2015-05-14 15:36 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 [this message]
2015-05-14 16:14 ` Smith, Virgil
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=5554C0EF.7030300@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --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.