Skip to contentSkip to conversation

add option -p for mkir command

PATCH Superseded [email protected] 1 participant 1 message Jan 7, 2022

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add option -p for mkir command

From: Changqing Li <[email protected]>

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

---
 .../openvswitch-git/systemd-create-runtime-dirs.patch           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch +1 -1
index 12b9e17..111aace 100644
@@ -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'
Signature · 1 line
2.17.1