Skip to contentSkip to conversation

add option -p for mkir command

PATCH Superseded [email protected] 2 participants 2 messages Jan 7, 2022 – Jan 10, 2022

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 add option -p for mkir command

From: Changqing Li <[email protected]>

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

---
 ...01-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-networking/openvswitch/files/0001-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch +1 -1
index f7ec3fa..8bda865 100644
@@ -96,7 +96,7 @@ index 74e5acb7f..39698f238 100644
  ExecStartPre=/bin/rm -f /run/openvswitch.useropts
 -ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch
 -ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch
-+ExecStartPre=-/bin/mkdir /run/openvswitch /var/log/openvswitch
++ExecStartPre=-/bin/mkdir -p /run/openvswitch /var/log/openvswitch
 +ExecStartPre=-/bin/chown ${OVS_USER_ID} /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
#1 lore raw

In message: [meta-virtualization][PATCH V2] add option -p for mkir command

Quoted 3 lines · on 07/01/2022 Changqing Li wrote:

From: Changqing Li <[email protected]>

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

Is this happening all the time ? I've never seen it in my logs. I'm assuming it is on some sort of stop, restart ? or on a second boot ? It is worth capturing that in this commit message

Otherwise, this looks fine to me.

Bruce

Quoted 32 lines
---
 ...01-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-networking/openvswitch/files/0001-ovs-use-run-instead-of-var-run-for-in-systemd-units.patch +1 -1
index f7ec3fa..8bda865 100644
@@ -96,7 +96,7 @@ index 74e5acb7f..39698f238 100644
  ExecStartPre=/bin/rm -f /run/openvswitch.useropts
 -ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch
 -ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch
-+ExecStartPre=-/bin/mkdir /run/openvswitch /var/log/openvswitch
++ExecStartPre=-/bin/mkdir -p /run/openvswitch /var/log/openvswitch
 +ExecStartPre=-/bin/chown ${OVS_USER_ID} /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 · 11 lines
2.17.1



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