Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: Redefine variable in bbappend
Date: Fri, 17 May 2013 10:50:33 -0500	[thread overview]
Message-ID: <519651C9.8080507@windriver.com> (raw)
In-Reply-To: <CADV-EXGo-3gRBOx5yoZhuqn6MWxfrRhsjBOs2CGLd8YV6=-Seg@mail.gmail.com>

On 5/16/13 7:08 PM, Yevhen Kyriukha wrote:
> Hi!
>
> I'm using "base-files" recipe but I don't want that /var/log be a
> symlink to temp directory.
> Therefore in my custom layer I created base-files bbappend file with
> following content:
>
> PRINC := "${@int(PRINC) + 1}"
>
> dirs755_append += "${localstatedir}/log"
> volatiles = "run lock tmp"
>
> In this recipe I removed "log" from volatiles but it doesn't work.
> I'm getting error:
> ERROR: Fixup Perms: Unable to correct directory link, target already
> exists: /var/log -> /var/volatile/log
>
> How to properly redefine the variable in bbappend file?

There are two parts to the filesystem layout.  There is the base-files package 
that sets up the initial layout.  This is the recipe you modified.  But there is 
also a second file that affects -all- packages and ensures that the directories 
(and links) that they create match the system configuration.

This is the meta/files/fs-perms.txt file.

Instead of copying this file to your layer and changing it, the system allows 
you to make your own custom changes.  To do that:

Create a new file in your layer:

your-layer/files/my-fs-perms.txt:
# Make /var/log a directory
${localstatedir}/log  0755   root   root   false   -   -   -

Then in the layer's conf/layer.conf add:

FILESYSTEM_PERMS_TABLES = "files/fs-perms.txt files/my-fs-perms.txt"

This will tell the system to first load the fs-perms.txt file, and then load 
my-fs-perms.txt.  The second file will simply add/change the entry from the first.

--Mark

> Best regards,
> Yevhen
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>




      reply	other threads:[~2013-05-17 16:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17  0:08 Redefine variable in bbappend Yevhen Kyriukha
2013-05-17 15:50 ` Mark Hatle [this message]

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=519651C9.8080507@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox