There is a service I want to run only when another service fails ([Unit] OnFailure=foo), but I don't want this service (foo) to start up automatically on boot. One option is running systemctl disable foo, but I'm looking for another way.
Background: I am creating an OS image, and I don't want to have to boot the machine up, run that command (systemctl disable foo), then shut it down before declaring my image final.