daemon: Add ConditionPathExists=/ostree

Right now the daemon assumes the system is using ostree, but
for various reasons people can try to start it on non-ostree systems.

This is a simple fix to avoid crashing.  A better fix would
need to rework a lot of the code to return dummy/stub values but
that would be painful.  Maybe later.

https://bugzilla.redhat.com/show_bug.cgi?id=1372194

Closes: #445
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-09-01 09:06:57 -04:00 committed by Atomic Bot
parent 665083dff9
commit 7145cbf7f3

View File

@ -5,3 +5,4 @@ Description=RPM OSTree Manager
Type=dbus
BusName=org.projectatomic.rpmostree1
ExecStart=@libexecdir@/rpm-ostreed
ConditionPathExists=/ostree