tools: handle missing xencommons in xen-init-dom0.service
authorOlaf Hering <olaf@aepfle.de>
Tue, 4 May 2021 14:31:28 +0000 (16:31 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 May 2021 18:10:43 +0000 (19:10 +0100)
sysconfig files are not mandatory.
Adjust xen-init-dom0.service to handle a missing sysconfig file by
prepending a dash to the to-be-sourced filename.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/hotplug/Linux/systemd/xen-init-dom0.service.in

index beed3126c6d78b1b854a41c68dba687578cb097c..98779b85076584e567a291ec365774483808f084 100644 (file)
@@ -7,7 +7,7 @@ ConditionPathExists=/proc/xen/capabilities
 [Service]
 Type=oneshot
 RemainAfterExit=true
-EnvironmentFile=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
+EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
 ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
 ExecStart=@LIBEXEC_BIN@/xen-init-dom0 $XEN_DOM0_UUID