All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Randle, William C" <william.c.randle@intel.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Recipe that creates empty /var/log directory is auto-mounted to /var/volatile/log
Date: Mon, 9 May 2016 15:17:26 +0000	[thread overview]
Message-ID: <1462807044.2253.4.camel@intel.com> (raw)
In-Reply-To: <CABfz71cxNpHg5u13k_brL=2+fGTc2zK7E-OTMW3Gn9ndsWsnMw@mail.gmail.com>

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

It happens in meta/recipes-core/initscripts. I don't know the history behind it, but the OE convention is to use /var/volatile, I believe mainly so that /var/volatile could be a RAMFS.

    -Bill

On Mon, 2016-05-09 at 10:02 -0400, Paul Knopf wrote:
I have a simple recipe that places files on the system.

-------------
do_install() {
  # create this directory, because our "normal" fstab file will mount a log partition to it.
  install -d ${D}/var/log
  install -d ${D}${sysconfdir}
  install -m 0644 ${WORKDIR}/fstab-normal ${D}${sysconfdir}/fstab
}
-------------

The fstab-normal file has an entry that mounts a partition to this created /var/log directory.

-------------
/dev/mmcblk0p3       /var/log             auto       defaults  0  0
-------------

However, when the package get's created, /var/log gets pointed to /var/volatile/log. Where is this happening, and why?

-------------
pknopf@ubuntu:~/Git/recipes/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/base-files-fstab-normal/1.0-r0/package$ tree
.
├── etc
│   └── fstab
└── var
    ├── log -> volatile/log
    └── volatile
        └── log

-------------

Thanks,
Paul Knopf
Software Engineer
Med X Change, Inc
pknopf@medxchange.com<mailto:pknopf@medxchange.com>

--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto


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

  reply	other threads:[~2016-05-09 15:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-09 14:02 Recipe that creates empty /var/log directory is auto-mounted to /var/volatile/log Paul Knopf
2016-05-09 15:17 ` Randle, William C [this message]
2016-05-09 15:32 ` Fred Ollinger

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=1462807044.2253.4.camel@intel.com \
    --to=william.c.randle@intel.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.