[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1] tools: handle missing xencommons in xen-init-dom0.service


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Tue, 4 May 2021 16:31:28 +0200
  • Arc-authentication-results: i=1; strato.com; dkim=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1620138691; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=PMt+6Y2zd1tLCLAyzAtE9v1z1cHR2MrHavRovAkAb3k=; b=T+7riswwGJG6XnBywZ6Q9KbJMFtolNqdJskFgVFWLp0ypM6OYGpTcXlJiTe+VXh8WI 5wNGsUJEIKEFKLJyW6j5pBrDa+Yf9SxJ4eDgD/ntblkJSB6a1Swr3MO5wct9f5Lle9sl IUo0JoIA4NcHz95Tj66dV5j3mB6ZvhR8OUG4YjmyHI4Y6mS73CmKjq5R4XvVjM4xckcH 8W0sWF294F4DYedIHqZY3UbZMTLRvoViA/cYtPlp6HUEW10yK2CcKkY0YkXLWqlz24xW hDKPfSlusPf54stm6P05crB+OF/pEJLS8aXTNKi/j/5LX145y8RgI19QoRB8RWlbp4/B dT9g==
  • Arc-seal: i=1; a=rsa-sha256; t=1620138691; cv=none; d=strato.com; s=strato-dkim-0002; b=kSmVLoVjuW7ipSwAwohtZoqtJDhnwRhD1u14OrAk3cGarmM5BqjhAtlZdpKIt0jZio OzFSx0LIrnUxindCy9E1klF9ACPDwme5zOavzjOzHWpc3NWLadVXuzWc84zSSm/16HFW mt8lstMAafQpu8PvfI+UA9egk6i3Z96zYw8If5/QB33FzxvqmAW4QvSLKkZ2ej7fMg+6 iGJKfRt4MfQE1Z+X6wdAec5TqRitZg4xV83e1Vb+UW0zh6X5z0tNXHkHqlIT0AXT4BSV dOeHFHxFMSJiCZZPxaTl8668nTGrLz5AJThL1ihOznnEB3PfKsUc7XEK3F1p1DiepXx1 TfwA==
  • Authentication-results: strato.com; dkim=none
  • Cc: Olaf Hering <olaf@xxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 04 May 2021 14:31:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxxxx>
---
 tools/hotplug/Linux/systemd/xen-init-dom0.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/systemd/xen-init-dom0.service.in 
b/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
index beed3126c6..98779b8507 100644
--- a/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
+++ b/tools/hotplug/Linux/systemd/xen-init-dom0.service.in
@@ -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
 



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.