summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch-git
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git')
-rw-r--r--recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch15
-rw-r--r--recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch29
2 files changed, 19 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 12b9e17a..7f6e5422 100644
--- a/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
+++ b/recipes-networking/openvswitch/openvswitch-git/systemd-create-runtime-dirs.patch
@@ -14,19 +14,16 @@ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
14 rhel/usr_lib_systemd_system_ovsdb-server.service | 2 +- 14 rhel/usr_lib_systemd_system_ovsdb-server.service | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 1 insertion(+), 1 deletion(-)
16 16
17diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service 17Index: git/rhel/usr_lib_systemd_system_ovsdb-server.service
18index 5002ddf10..74e5acb7f 100644 18===================================================================
19--- a/rhel/usr_lib_systemd_system_ovsdb-server.service 19--- git.orig/rhel/usr_lib_systemd_system_ovsdb-server.service
20+++ b/rhel/usr_lib_systemd_system_ovsdb-server.service 20+++ git/rhel/usr_lib_systemd_system_ovsdb-server.service
21@@ -17,7 +17,7 @@ EnvironmentFile=-/run/openvswitch.useropts 21@@ -17,7 +17,7 @@
22 # remove openvswitch.useropts first to reload a fresh 22 # remove openvswitch.useropts first to reload a fresh
23 # OVS_USER_ID from default.conf or sysconfig. 23 # OVS_USER_ID from default.conf or sysconfig.
24 ExecStartPre=/bin/rm -f /run/openvswitch.useropts 24 ExecStartPre=/bin/rm -f /run/openvswitch.useropts
25- 25-
26+ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch 26+ExecStartPre=-/bin/mkdir /var/run/openvswitch /var/log/openvswitch
27 ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch 27 ExecStartPre=-/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
28 ExecStartPre=/bin/sh -c '/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'
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 ExecStartPre=/bin/sh -c 'if [ "$${OVS_USER_ID/:*/}" != "root" ]; then /bin/echo "OVS_USER_OPT=--ovs-user=${OVS_USER_ID}" >> /run/openvswitch.useropts; fi'
30--
312.17.1
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 be6fa5d9..a9eae832 100644
--- a/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch
+++ b/recipes-networking/openvswitch/openvswitch-git/systemd-update-tool-paths.patch
@@ -12,11 +12,11 @@ Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
12 rhel/usr_lib_systemd_system_ovsdb-server.service | 8 ++++---- 12 rhel/usr_lib_systemd_system_ovsdb-server.service | 8 ++++----
13 2 files changed, 6 insertions(+), 6 deletions(-) 13 2 files changed, 6 insertions(+), 6 deletions(-)
14 14
15diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in 15Index: git/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
16index ff43dae96..f88b57cae 100644 16===================================================================
17--- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in 17--- git.orig/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
18+++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in 18+++ git/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
19@@ -17,8 +17,8 @@ EnvironmentFile=-/etc/sysconfig/openvswitch 19@@ -17,8 +17,8 @@
20 EnvironmentFile=-/run/openvswitch.useropts 20 EnvironmentFile=-/run/openvswitch.useropts
21 LimitSTACK=2M 21 LimitSTACK=2M
22 @begin_dpdk@ 22 @begin_dpdk@
@@ -27,26 +27,23 @@ index ff43dae96..f88b57cae 100644
27 @end_dpdk@ 27 @end_dpdk@
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 \
30diff --git a/rhel/usr_lib_systemd_system_ovsdb-server.service b/rhel/usr_lib_systemd_system_ovsdb-server.service 30Index: git/rhel/usr_lib_systemd_system_ovsdb-server.service
31index 98338b9df..5002ddf10 100644 31===================================================================
32--- a/rhel/usr_lib_systemd_system_ovsdb-server.service 32--- git.orig/rhel/usr_lib_systemd_system_ovsdb-server.service
33+++ b/rhel/usr_lib_systemd_system_ovsdb-server.service 33+++ git/rhel/usr_lib_systemd_system_ovsdb-server.service
34@@ -16,11 +16,11 @@ EnvironmentFile=-/run/openvswitch.useropts 34@@ -16,11 +16,11 @@
35 # Environment is reloaded for each Exec*, make sure to 35 # Environment is reloaded for each Exec*, make sure to
36 # remove openvswitch.useropts first to reload a fresh 36 # remove openvswitch.useropts first to reload a fresh
37 # OVS_USER_ID from default.conf or sysconfig. 37 # OVS_USER_ID from default.conf or sysconfig.
38-ExecStartPre=/usr/bin/rm -f /run/openvswitch.useropts 38-ExecStartPre=/usr/bin/rm -f /run/openvswitch.useropts
39+ExecStartPre=/bin/rm -f /run/openvswitch.useropts 39+ExecStartPre=/bin/rm -f /run/openvswitch.useropts
40 40
41-ExecStartPre=-/usr/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch 41-ExecStartPre=-/usr/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
42-ExecStartPre=/bin/sh -c '/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'
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' 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'
44+ExecStartPre=-/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch 44+ExecStartPre=-/bin/chown ${OVS_USER_ID} /run/openvswitch /var/log/openvswitch
45+ExecStartPre=/bin/sh -c '/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'
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' 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'
47 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ 47 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
48 --no-ovs-vswitchd --no-monitor --system-id=random \ 48 --no-ovs-vswitchd --no-monitor --system-id=random \
49 ${OVS_USER_OPT} \ 49 ${OVS_USER_OPT} \
50--
512.17.1
52