Comment 2 for bug 1468103

Revision history for this message
Martin Pitt (pitti) wrote : Re: rc.local runs too early.

> Generally speaking people expect rc.local to be run as "the last thing in boot".

This can't be taken literally, as services can and do come and go (stop and start) all the time, and as any service can declare dependencies to run after "your thing" this can't be enforced either.

For example, could-final.service has an "After=rc-local.service" which I assume is deliberate. So we can't do a thing like "run rc-local.service after multi-user.target" as that would be an unresolvable ordering with cloud-final.service.

Thus I suggest to add an After=rc-local.service to cloud-init.service. This is explicit and unambiguous.