From: Changqing Li <[email protected]>

To avoid "cannot create directory '/var/log/openvswitch': File exists"

Signed-off-by: Changqing Li <[email protected]>
---
 .../openvswitch-git/systemd-create-runtime-dirs.patch           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
 
b/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
index 12b9e17..111aace 100644
--- 
a/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
+++ 
b/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
@@ -23,7 +23,7 @@ index 5002ddf10..74e5acb7f 100644
  # OVS_USER_ID from default.conf or sysconfig.
  ExecStartPre=/bin/rm -f /run/openvswitch.useropts
 -
-+ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch
++ExecStartPre=-/bin/mkdir -p /var/run/openvswitch /var/log/openvswitch
  ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch 
/var/log/openvswitch
  ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > 
/run/openvswitch.useropts'
  ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then 
/bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> 
/run/openvswitch.useropts; fi'
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6991): 
https://lists.yoctoproject.org/g/meta-virtualization/message/6991
Mute This Topic: https://lists.yoctoproject.org/mt/88254696/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to