public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: "Schmidl, Tobias (T CED SES-DE)" <tobiasschmidl@siemens.com>
Cc: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	"Moessbauer, Felix (T CED SES-DE)" <felix.moessbauer@siemens.com>,
	"Gylstorff, Quirin (T CED SES-DE)" <quirin.gylstorff@siemens.com>,
	"Kiszka, Jan (T CED)" <jan.kiszka@siemens.com>
Subject: Re: Bug: machine id is never generated
Date: Fri, 22 Jul 2022 21:54:38 +0200	[thread overview]
Message-ID: <20220722215438.5f25e111@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <eee500a5740dbdc5dfb8559c66be9600d1920703.camel@siemens.com>

Am Thu, 21 Jul 2022 19:08:14 +0200
schrieb "Schmidl, Tobias (T CED SES-DE)" <tobiasschmidl@siemens.com>:

> Hi Felix,
> 
> Am Donnerstag, dem 21.07.2022 um 15:41 +0000 schrieb Moessbauer,
> Felix (T CED SES-DE):
> > Hi,
> > 
> > when booting plain ISAR images (with Debian11), the
> > "/etc/machine-id" is never generated.
> > This breaks a couple of services that depend on having the id.
> > An example is the systemd-networkd with DHCP, leading to error
> > messages like this one (and breaking networking):
> > 
> > systemd-networkd[277]: enp8s0: DHCP6 CLIENT: Failed to set
> > identifier: No such file or directory
> > 
> > The error can manually be fixed by running
> > "systemd-machine-id-setup", but this obviously does not work in
> > embedded scenarios.
> > 
> > The root cause could be that /etc is read-only mounted when the
> > first- boot-complete.target is reached.
> > At least the logs indicate this:
> >   
> 
> I've examined the same thing, for expand-on-first-boot, which would
> also profit from a `ConditionFirstBoot=yes` in its service file. I've
> seen the same pattern.

Hooking into systemds understanding of "first boot" would be good for
expand-on-first-boot and sshd-regen-keys when just talking plain isar.
Both recipes use a weird trick to only run once. A nasty pattern that
might have spread into layer recipes.

It would be really nice if isar generated images could make use of
`ConditionFirstBoot=yes` in any recipe that has such needs. I think we
should try to get there with isar. The only problem is that debian
assumes the "first boot" to be the install-time so we might break
assumptions. But if we do i am sure debian will try to cater once there
is any kind of problem and we explain the case.

regards,
Henning

> 
> What I don't understand is that with a normal Debian the regeneration
> of /etc/machine-id works without any problems. Somehow we have to
> differ here.
> 
> Kind regards,
> 
> Tobias
> 


  reply	other threads:[~2022-07-22 19:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-21 15:41 Moessbauer, Felix
2022-07-21 16:26 ` Henning Schild
2022-07-21 17:08 ` Schmidl, Tobias
2022-07-22 19:54   ` Henning Schild [this message]
2022-07-22  9:32 ` Gylstorff Quirin
2022-07-22 10:55   ` Gylstorff Quirin
2022-10-06 13:22 ` Henning Schild
2022-10-07  7:11   ` Moessbauer, Felix
2022-10-07  8:12     ` Henning Schild

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=20220722215438.5f25e111@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=quirin.gylstorff@siemens.com \
    --cc=tobiasschmidl@siemens.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox