<font><span style="background-color:rgba(255,255,255,0)">Hi,</span></font><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">I'm facing with a problem while trying to enable services whose files are not present at the boot time. Here is the scenario:</span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">1. the service <i>apps-mount.service</i> mounts a squashfs containing different services in union (aufs) on /etc/systemd/system</span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> RESULT: in /etc/systemd/system there are now all the new services and each contains WantedBy=<i>apps-started.target</i></span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">2. the service <i>apps-start.service</i> enables all the new services (added in point 1) invoking a 'systemctl enable --runtime xxx.service'</span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> RESULT: In /etc/systemd/system/apps-started.wants/ there are correctly all the links to the enabled services</span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">3.<i> apps-started.target</i> starts and finishes</span></font></div><div>
<font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"> RESULT: the new services have <b>not</b> been started</span></font></div><div>
<font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Is there a way to change a target's dependencies at runtime before the target is launched?</span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">BR,</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">smanni</span></font></div>