[systemd-devel] Systemd loads units before btrfs subvolumes are mounted

Lennart Poettering lennart at poettering.net
Wed May 25 15:22:46 UTC 2016


On Wed, 25.05.16 10:05, Jóhann B. Guðmundsson (johannbg at gmail.com) wrote:

> <snip>
> 
> You will always risk ending up with a race condition if you place your type
> units outside the official directories.
> 
> /etc/systemd/system/*  ( Administrators )
> /run/systemd/system/* ( Temporary )
> /usr/lib/systemd/system/* ( Vendors )
> 
> Arguably the support running/loading type unit files outside the above
> directories should be altogether removed or at least a warning issues since
> this is bound to create administrative mess ( as was apparent when vendor
> did something like that with legacy sys v init ).

I don#t really agree I must say.

And it is not racy at all, as long as the paths you use are available
from early boot on, and hence not on a mount point that is not
available right-away.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list