From: Fred Ollinger <Fred.Ollinger@seescan.com>
To: Paul Knopf <pknopf@medxchange.com>,
"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:32:43 +0000 [thread overview]
Message-ID: <1462807953706.30266@seescan.com> (raw)
In-Reply-To: <CABfz71cxNpHg5u13k_brL=2+fGTc2zK7E-OTMW3Gn9ndsWsnMw@mail.gmail.com>
Some people choose a read-only file system. Thus /var/log is not writable.
However, some software expects to use the hard coded path of /var/log.
Thus, there's a symlink to the ramdisk to solve both problems.
________________________________
From: yocto-bounces@yoctoproject.org <yocto-bounces@yoctoproject.org> on behalf of Paul Knopf <pknopf@medxchange.com>
Sent: Monday, May 9, 2016 7:02 AM
To: yocto@yoctoproject.org
Subject: [yocto] Recipe that creates empty /var/log directory is auto-mounted to /var/volatile/log
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>
prev parent reply other threads:[~2016-05-09 15:51 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
2016-05-09 15:32 ` Fred Ollinger [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=1462807953706.30266@seescan.com \
--to=fred.ollinger@seescan.com \
--cc=pknopf@medxchange.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.