<div dir="ltr">Hi,<div><br></div><div>What would be the advantage of placing an early boot up script in between local-fs.target/sysinit.target OR in between sysinit.target/basic.target?<br><div><br></div><div style>I cannot decide what should be the ordering for some early initialization "oneshot" services I have in my embedded system. These services makes some simple preparations that were previously in /rcS.d/. Dropped support for /rcS.d/ in systemd was placing these services as After=sysinit.target and WantedBy=sysinit.target (and I am not entirely sure but possibly Before=basic.target). I could place them as systemd did before or I could place them as After=local-fs.target and Before=sysinit.target.</div>
</div><div style><br></div><div style>Since my embedded system doesn't have login prompt, I don't see the difference between basic.target and sysinit.target other than socket activation. Even then, a service that is socket activated has DefaultDependency=yes (It will start after basic.target).</div>
<div style><br></div><div style>To summarize, where are users encouraged to place their early boot up initialization services (ex: setting up the bandwith on a NIC)?</div><div style><br></div><div style>Thanks</div></div>