diff options
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git')
| -rw-r--r-- | recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch | 23 | ||||
| -rw-r--r-- | recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch | 31 |
2 files changed, 29 insertions, 25 deletions
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 0438cf88..12b9e17a 100644 --- a/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch +++ b/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From 6876e0c155b7f83e1f8545446e2dd69c2b7989f2 Mon Sep 17 00:00:00 2001 | 1 | From fc540d0dee7d1f801c781905735f0f4619aba511 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Asselstine <mark.asselstine@windriver.com> | 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
| 3 | Date: Tue, 4 Sep 2018 15:38:59 -0400 | 3 | Date: Thu, 11 Mar 2021 11:26:58 +0800 |
| 4 | Subject: [PATCH] systemd: create runtime dirs | 4 | Subject: [PATCH] systemd: create runtime dirs |
| 5 | 5 | ||
| 6 | The recommendation would be to make use of "RuntimeDirectory=" and | 6 | The recommendation would be to make use of "RuntimeDirectory=" and |
| @@ -11,21 +11,22 @@ directories won't exist. | |||
| 11 | 11 | ||
| 12 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | 12 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> |
| 13 | --- | 13 | --- |
| 14 | rhel/usr_lib_systemd_system_ovsdb-server.service | 1 + | 14 | rhel/usr_lib_systemd_system_ovsdb-server.service | 2 +- |
| 15 | 1 file changed, 1 insertion(+) | 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | 16 | ||
| 17 | diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service | 17 | diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service |
| 18 | index aad557f..69b0bf6 100644 | 18 | index 5002ddf10..74e5acb7f 100644 |
| 19 | --- a/rhel/usr_lib_systemd_system_ovsdb-server.service | 19 | --- a/rhel/usr_lib_systemd_system_ovsdb-server.service |
| 20 | +++ b/rhel/usr_lib_systemd_system_ovsdb-server.service | 20 | +++ b/rhel/usr_lib_systemd_system_ovsdb-server.service |
| 21 | @@ -11,6 +11,7 @@ PIDFile=/var/run/openvswitch/ovsdb-server.pid | 21 | @@ -17,7 +17,7 @@ EnvironmentFile=-/run/openvswitch.useropts |
| 22 | Restart=on-failure | 22 | # remove openvswitch.useropts first to reload a fresh |
| 23 | EnvironmentFile=/etc/openvswitch/default.conf | 23 | # OVS_USER_ID from default.conf or sysconfig. |
| 24 | EnvironmentFile=-/etc/sysconfig/openvswitch | 24 | ExecStartPre=/bin/rm -f /run/openvswitch.useropts |
| 25 | - | ||
| 25 | +ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch | 26 | +ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch |
| 26 | ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch | 27 | ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch |
| 27 | ExecStartPre=/bin/sh -c 'rm -f /run/openvswitch.useropts; /bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' | 28 | ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' |
| 28 | ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' | 29 | ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' |
| 29 | -- | 30 | -- |
| 30 | 2.7.4 | 31 | 2.17.1 |
| 31 | 32 | ||
diff --git a/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch b/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch index aae44fe7..be6fa5d9 100644 --- a/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch +++ b/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From efd6b8f03ef7278d2477833f84bb8488bd0c346d Mon Sep 17 00:00:00 2001 | 1 | From a79bf6caf915d2a00a52a73033b1c903f2df894f Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Asselstine <mark.asselstine@windriver.com> | 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
| 3 | Date: Tue, 29 May 2018 18:57:46 +0000 | 3 | Date: Wed, 10 Mar 2021 11:17:37 +0800 |
| 4 | Subject: [PATCH 1/2] systemd: update tool paths | 4 | Subject: [PATCH 1/2] systemd: update tool paths |
| 5 | 5 | ||
| 6 | We are using the rhel files but we install our tools in a slightly | 6 | We are using the rhel files but we install our tools in a slightly |
| @@ -9,11 +9,11 @@ different path, update accordingly. | |||
| 9 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | 9 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> |
| 10 | --- | 10 | --- |
| 11 | rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 4 ++-- | 11 | rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 4 ++-- |
| 12 | rhel/usr_lib_systemd_system_ovsdb-server.service | 6 +++--- | 12 | rhel/usr_lib_systemd_system_ovsdb-server.service | 8 ++++---- |
| 13 | 2 files changed, 5 insertions(+), 5 deletions(-) | 13 | 2 files changed, 6 insertions(+), 6 deletions(-) |
| 14 | 14 | ||
| 15 | diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 15 | diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in |
| 16 | index ff43dae..f88b57c 100644 | 16 | index ff43dae96..f88b57cae 100644 |
| 17 | --- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 17 | --- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in |
| 18 | +++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in | 18 | +++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in |
| 19 | @@ -17,8 +17,8 @@ EnvironmentFile=-/etc/sysconfig/openvswitch | 19 | @@ -17,8 +17,8 @@ EnvironmentFile=-/etc/sysconfig/openvswitch |
| @@ -28,22 +28,25 @@ index ff43dae..f88b57c 100644 | |||
| 28 | ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ | 28 | ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ |
| 29 | --no-ovsdb-server --no-monitor --system-id=random \ | 29 | --no-ovsdb-server --no-monitor --system-id=random \ |
| 30 | diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service | 30 | diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service |
| 31 | index 4c170c0..aad557f 100644 | 31 | index 98338b9df..5002ddf10 100644 |
| 32 | --- a/rhel/usr_lib_systemd_system_ovsdb-server.service | 32 | --- a/rhel/usr_lib_systemd_system_ovsdb-server.service |
| 33 | +++ b/rhel/usr_lib_systemd_system_ovsdb-server.service | 33 | +++ b/rhel/usr_lib_systemd_system_ovsdb-server.service |
| 34 | @@ -11,9 +11,9 @@ PIDFile=/var/run/openvswitch/ovsdb-server.pid | 34 | @@ -16,11 +16,11 @@ EnvironmentFile=-/run/openvswitch.useropts |
| 35 | Restart=on-failure | 35 | # Environment is reloaded for each Exec*, make sure to |
| 36 | EnvironmentFile=/etc/openvswitch/default.conf | 36 | # remove openvswitch.useropts first to reload a fresh |
| 37 | EnvironmentFile=-/etc/sysconfig/openvswitch | 37 | # OVS_USER_ID from default.conf or sysconfig. |
| 38 | -ExecStartPre=/usr/bin/rm -f /run/openvswitch.useropts | ||
| 39 | +ExecStartPre=/bin/rm -f /run/openvswitch.useropts | ||
| 40 | |||
| 38 | -ExecStartPre=-/usr/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch | 41 | -ExecStartPre=-/usr/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch |
| 39 | -ExecStartPre=/bin/sh -c 'rm -f /run/openvswitch.useropts; /usr/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' | 42 | -ExecStartPre=/bin/sh -c '/usr/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' |
| 40 | -ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /usr/bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' | 43 | -ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /usr/bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' |
| 41 | +ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch | 44 | +ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch |
| 42 | +ExecStartPre=/bin/sh -c 'rm -f /run/openvswitch.useropts; /bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' | 45 | +ExecStartPre=/bin/sh -c '/bin/echo "OVS_USER_ID=${OVS_USER_ID}" > /run/openvswitch.useropts' |
| 43 | +ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' | 46 | +ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi' |
| 44 | EnvironmentFile=-/run/openvswitch.useropts | ||
| 45 | ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ | 47 | ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ |
| 46 | --no-ovs-vswitchd --no-monitor --system-id=random \ | 48 | --no-ovs-vswitchd --no-monitor --system-id=random \ |
| 49 | ${OVS_USER_OPT} \ | ||
| 47 | -- | 50 | -- |
| 48 | 2.7.4 | 51 | 2.17.1 |
| 49 | 52 | ||
