All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niko Mauno <niko.mauno@vaisala.com>
To: vs.yocto@outlook.com, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] Issue: /var/tmp does not persist due to /var/volatile being tmpfs in fstab #scarthgap
Date: Wed, 19 Mar 2025 06:55:55 +0200	[thread overview]
Message-ID: <6719c62a-ce76-4dcf-85ef-2cb355d8336e@vaisala.com> (raw)
In-Reply-To: <2962.1742314292470649522@lists.openembedded.org>

On 3/18/25 18:11, Vish via lists.openembedded.org wrote:
> Can we know the reasons for original changes here?
> https://git.yoctoproject.org/poky/commit/meta/recipes-core/systemd/ 
> systemd/00-create-volatile.conf? 
> h=scarthgap&id=3cc8c3520cedb66500757f843f757646da69ab30 <https:// 
> git.yoctoproject.org/poky/commit/meta/recipes-core/systemd/systemd/00- 
> create-volatile.conf? 
> h=scarthgap&id=3cc8c3520cedb66500757f843f757646da69ab30>
> I reviewed commit message but not giving much details. Considering 
> default base-files and as persistence is required, this newer approach 
> seems be an issue.

Hi Vish, that commit should only have the effect to avoid seeing an 
associated error line in systemd journal ("/var/tmp" already exists and 
is not a directory). The error line was stemming from the fact that in 
Yocto Scarthgap base-files creates /var/tmp as symlink to 
/var/volatile/tmp 
(https://git.yoctoproject.org/poky/tree/meta/recipes-core/base-files/base-files_3.0.14.bb?h=scarthgap#n87) 
which contradicts systemd's default runtime expectations.

The base-files provided /var/tmp -> /var/volatile/tmp symlink has been 
prevalent convention in Yocto for a very long time. (If you want to have 
/var/tmp as directory instead in Scarthgap I believe you can e.g. append 
base-files do_install() task to remove the symlink and replace it with 
directory.)

BR, Niko


      parent reply	other threads:[~2025-03-19  4:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-18  3:17 Issue: /var/tmp does not persist due to /var/volatile being tmpfs in fstab #scarthgap Vish
2025-03-18  4:48 ` [OE-core] " Chen, Qi
2025-03-18 16:11   ` Vish
2025-03-18 22:22     ` [OE-core] " Richard Purdie
2025-03-18 23:24       ` Vish
2025-03-19  6:57         ` [OE-core] " Alexander Kanavin
2025-03-19  9:11         ` Richard Purdie
2025-03-19 18:28           ` Vish
2025-03-19  4:55     ` Niko Mauno [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=6719c62a-ce76-4dcf-85ef-2cb355d8336e@vaisala.com \
    --to=niko.mauno@vaisala.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=vs.yocto@outlook.com \
    /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.