[systemd-devel] firmware update check script
Lennart Poettering
lennart at poettering.net
Wed Aug 3 14:47:09 UTC 2016
On Tue, 02.08.16 10:19, Stéphane ANCELOT (sancelot at free.fr) wrote:
> Hi,
>
> It looks like very complicated making easy thing....
>
> I would need only setting up a script that looks for usb media and launch a script if available on it (firmware upgrade)
>
> unfortunately, it looks like, graphic display is launched in parallel and i am not able doing this in a text only mode, before continuing boot process
>
> I would need some help to going on.
This cannot work and is incompatible with how modern computers
work. USB devices can take any time they want to initialize, and that
means there's no point in time at boot where all USB sticks are known
to have shown up, since there could always be more still popping up.
You can order your service before the display manager of your choice,
and use Type=oneshot to make sure your tool finishes before the
activation of the DM is attempted, but this will be very racy because
of the aforementioned issue that USB devices can take any time they
like to initialize.
Sorry,
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list