ostree-prepare-root.service: add OnFailureJobMode=isolate
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 21 Mar 2024 16:19:32 +0000 (12:19 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 21 Mar 2024 16:19:32 +0000 (12:19 -0400)
commit05b3b662756def30026fc722d0832a24a33d9803
treeccef06db359b8b69d3136949dda6d52dad5501d8
parentdc4d4b5592d68a59afb0e4406dd2faa0df1b096b
ostree-prepare-root.service: add OnFailureJobMode=isolate

This is stronger than the default (`replace`) because it tells systemd
to *stop everything* and go to `emergency.target`. In other codebases,
this has definitely helped me with the problem of "systemd keeps going
even after a failure".

Likely addresses #3219.

See also e.g. https://github.com/coreos/ignition-dracut/commit/3d2e165f97f30c1e62577357f27f32e60e6add18.
src/boot/ostree-prepare-root.service