From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
To: "Schaffner, Tobias" <tobias.schaffner@siemens.com>
Cc: "Schild, Henning" <henning.schild@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>,
"MOESSBAUER, FELIX JONATHAN" <felix.moessbauer@siemens.com>,
"Kiszka, Jan" <jan.kiszka@siemens.com>
Subject: Re: [PATCH] expand-on-first-boot: wait for udev to create symlink
Date: Fri, 9 Dec 2022 18:17:43 +0100 [thread overview]
Message-ID: <CAJGKYO5qhrp3giQG4-objxJTGZJg4G27y-sgv5-Ka6gKMC54VA@mail.gmail.com> (raw)
In-Reply-To: <05f02754-df02-54c8-8cd0-7bf6595ca1a3@siemens.com>
On Fri, 9 Dec 2022 at 11:51, Schaffner, Tobias
<tobias.schaffner@siemens.com> wrote:
>
>
> The problem appears if this systemd unit is not up yet when we try to
> use systemd-growfs by hand.
>
> Therefore a udevadm trigger/settle would also most probably hit too early.
>
Dear Tobias,
I am not an expert of udev because I never investigated its code.
However, for the little I did with it, udevadm is the main tool to
interact with udev. In particular udevadm trigger --action=add is
exactly the request we send in order to push udev to register devices.
Because this registration is not immediate, udevadm settle is a good
way to wait for it finishes. Probably --type=subsystems
--subsystems-type=block could be better address the initial trigger
request. In my case, it seems not appropriate but further
investigation may worth a little of time. The settle could have a
timeout and in such a case a loop of pooling for the device should
run. In my specific case, udevadm also terminate udev because the
initial instance at boot time would not collide with system instance
called later. I hope this helps.
Best regards, R-
prev parent reply other threads:[~2022-12-09 17:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 16:55 T. Schaffner
2022-12-08 17:39 ` Henning Schild
2022-12-08 19:18 ` Schaffner, Tobias
2022-12-08 19:42 ` Henning Schild
2022-12-09 0:22 ` Roberto A. Foglietta
2022-12-09 10:51 ` Schaffner, Tobias
2022-12-09 17:17 ` Roberto A. Foglietta [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=CAJGKYO5qhrp3giQG4-objxJTGZJg4G27y-sgv5-Ka6gKMC54VA@mail.gmail.com \
--to=roberto.foglietta@gmail.com \
--cc=felix.moessbauer@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
--cc=tobias.schaffner@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