You are right, but that's only systemd that is incompatible with this feature (and some more). As some people and some articles I have read on the web, it is time for myself switching my system to a professional initscript service.
----- Mail original ----- De: "Lennart Poettering" <lenn...@poettering.net> À: "Stéphane ANCELOT" <sance...@free.fr> Cc: systemd-devel@lists.freedesktop.org Envoyé: Mercredi 3 Août 2016 16:47:09 Objet: Re: [systemd-devel] firmware update check script On Tue, 02.08.16 10:19, Stéphane ANCELOT (sance...@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 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel