[systemd-devel] why does nofail imply no After= in /etc/fstab

Lennart Poettering lennart at poettering.net
Thu Jan 16 06:51:02 PST 2014


On Wed, 15.01.14 20:20, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> I was a bit surprised that for mount points the dependency
> Before=local-fs.target is only added when nofail is not used.
> This seems to be a concious decision (added by Lennart in
> 155da457, and then survived all the refactorings by Tom
> and Thomas...). Do we still want this behaviour?

Well, "nofail" means that we shouldn't bother if the device doesn't show
up at boot. Now, if we add "After=" for it there, then we will time-out
on it (though not fail) if something else pulls it in.

I figure this is a question what nofail really should mean: "never wait
for it, never fail for it" (which is the status quo), or just "usually
don't wait, never fail for it" (which would be the change if we added
After= in). I am tempted to say that the status quo is more likely what
people would expect, no?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list