public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'MOESSBAUER, Felix' via isar-users" <isar-users@googlegroups.com>
To: "ubely@ilbers.de" <ubely@ilbers.de>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: [PATCH v2] expand-on-first-boot: Add /tmp to ConditionPathIsReadWrite
Date: Thu, 18 Jul 2024 07:11:51 +0000	[thread overview]
Message-ID: <daac26ddcb386a28ff13301c5f8abb521a078a57.camel@siemens.com> (raw)
In-Reply-To: <a822d75f4c1e85d483e1b32809c818faf95f0226.camel@ilbers.de>

On Thu, 2024-07-18 at 08:35 +0300, Uladzimir Bely wrote:
> On Fri, 2024-07-12 at 17:39 +0200, 'Clara Kowalsky' via isar-users
> wrote:
> > Since mktemp is used and creates a temporary file, we need to
> > ensure
> > that /tmp is writable.
> > 
> > Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
> > ---
> >  .../expand-on-first-boot/files/expand-on-first-boot.service     |
> > 2
> > +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/recipes-support/expand-on-first-
> > boot/files/expand-
> > on-first-boot.service b/meta/recipes-support/expand-on-first-
> > boot/files/expand-on-first-boot.service
> > index 90c92a39..9daae719 100644
> > --- a/meta/recipes-support/expand-on-first-boot/files/expand-on-
> > first-boot.service
> > +++ b/meta/recipes-support/expand-on-first-boot/files/expand-on-
> > first-boot.service
> > @@ -9,7 +9,7 @@ DefaultDependencies=no
> >  Conflicts=shutdown.target
> >  After=systemd-remount-fs.service
> >  Before=local-fs-pre.target shutdown.target
> > -ConditionPathIsReadWrite=/etc
> > +ConditionPathIsReadWrite=/etc /tmp
> >  
> 
> In a downstream we have read-only rootfs and some writable last
> partition that we want to expand. Having writable "/etc" condition in
> Isar recipe makes us use .bbappend rewrite the service file.
> 
> Would not it be better not to depend on writable "/etc" at all in
> Isar?

According to systemd, /etc must be RW when transitioning out of the
initrd. The reason for that is the creation of the machine-id.

Felix

> 
> >  [Service]
> >  Type=oneshot
> > -- 
> > 2.45.2
> > 
> 
> BTW, in the same downstream something close we do for sshd-regen-keys
> service. Due to readonly rootfs, instead of writable "/etc" condition
> we use more narrow "/etc/ssh" one. So it might be changed in Isar
> also,
> but it is a topic for a separate discussion.
> 
> -- 
> Best regards,
> Uladzimir.
> 

-- 
Siemens AG, Technology
Linux Expert Center


-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/daac26ddcb386a28ff13301c5f8abb521a078a57.camel%40siemens.com.

      reply	other threads:[~2024-07-18  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-12 15:39 'Clara Kowalsky' via isar-users
2024-07-18  5:35 ` Uladzimir Bely
2024-07-18  7:11   ` 'MOESSBAUER, Felix' via isar-users [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=daac26ddcb386a28ff13301c5f8abb521a078a57.camel@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=ubely@ilbers.de \
    /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