units: drop OnFailure= from .target units#14787
Conversation
See c80a9a3, target units can't fail. I guess we need to figure out some replacement functionality, but at least let's avoid the warning from systemd for now.
|
bionic-i386 seems to fail with a timeout, probably unrelated. |
|
@keszybz is it right? .target units can fail, for example by dependencies, no? I've just had an occurrence when one of my machines booted up to multi-user.target despite having failed a non-optional mount in fstab. I suppose this is why? |
|
According to c80a9a3, they can't. @poettering? |
|
@keszybz if targets can't fail, then how did it ever work before? Meaning the emergency transition on a failed mount. |
|
all units can fail on timeouts... right ? there are timeouts in the [Unit] section IIRC |
|
No, that's job timeouts. When a job times out, the target unit doesn't change state: |
You are aware that Line 1053 in 24e2494 |
See c80a9a3, target units can't fail.
I guess we need to figure out some replacement functionality, but at least
let's avoid the warning from systemd for now.