summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2017-02-10 17:34:02 +0100
committerDavid Seifert <soap@gentoo.org>2017-02-10 23:33:43 +0100
commit62bbd33354e7998be690ac3f6b17bbbe3e64abac (patch)
treeda8d7dd8bc8c35df6efc942cab42bf405572027e /sys-cluster
parentsys-fabric/infinipath-psm: remove unused patch (diff)
downloadgentoo-62bbd33354e7998be690ac3f6b17bbbe3e64abac.tar.gz
gentoo-62bbd33354e7998be690ac3f6b17bbbe3e64abac.tar.bz2
gentoo-62bbd33354e7998be690ac3f6b17bbbe3e64abac.zip
sys-cluster/vzctl: remove unused patches
Closes: https://github.com/gentoo/gentoo/pull/3901
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/vzctl/files/vzctl-initscript-paths.patch142
-rw-r--r--sys-cluster/vzctl/files/vzctl-initscript-typo-patch-4.8.patch32
2 files changed, 0 insertions, 174 deletions
diff --git a/sys-cluster/vzctl/files/vzctl-initscript-paths.patch b/sys-cluster/vzctl/files/vzctl-initscript-paths.patch
deleted file mode 100644
index 8fc0b12009b4..000000000000
--- a/sys-cluster/vzctl/files/vzctl-initscript-paths.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From: Kir Kolyshkin <kir@openvz.org>
-Date: Thu, 3 Jan 2013 19:37:00 +0000 (-0800)
-Subject: init.d/vz-gentoo: don't call tools by absolute path
-X-Git-Url: http://git.openvz.org/?p=vzctl;a=commitdiff_plain;h=2fc34ffb5f5e;hp=9a4a85397f7dd99e2c4059de7fb6ef5d750242c5
-
-init.d/vz-gentoo: don't call tools by absolute path
-
-Apparently in recent Gentoo the ip tool was moved from /sbin to /bin,
-so this initscript stopped working.
-
-Apparently runscript makes sure all the needed directories are in PATH
-(I have tested with runscript from baselayout-1.12.11.1, pretty old one)
-so we can just drop the /sbin/ prefix.
-
-While at it, do it not only for ip, but also for modprobe and sysctl.
-
-http://bugzilla.openvz.org/2477
-https://bugs.gentoo.org/show_bug.cgi?id=444201
-
-Reported-by: Andrei Vinogradov <spamslepnoga@inbox.ru>
-Reported-by: Joakim <moonwalker@astro.nu>
-Signed-off-by: Kir Kolyshkin <kir@openvz.org>
----
-
-diff --git a/etc/init.d/vz-gentoo.in b/etc/init.d/vz-gentoo.in
-index 2dd2186..51231bc 100755
---- a/etc/init.d/vz-gentoo.in
-+++ b/etc/init.d/vz-gentoo.in
-@@ -87,7 +87,7 @@ start_net() {
-
- # load necessary modules
- for mod in ${NET_MODULES}; do
-- /sbin/modprobe ${mod} 2>/dev/null
-+ modprobe ${mod} 2>/dev/null
- done
-
- if [ ! -f ${VZVEINFO} ]; then
-@@ -95,22 +95,22 @@ start_net() {
- fi
-
- # we don't operate on a running interface
-- if /sbin/ip addr list | grep -q "venet0:.*UP" 2>/dev/null; then
-+ if ip addr list | grep -q "venet0:.*UP" 2>/dev/null; then
- return 0
- fi
-
- # configure the device
- ebegin "Bringing up interface ${VZDEV}"
-- /sbin/ip link set ${VZDEV} up
-+ ip link set ${VZDEV} up
- eend $?
-
-- /sbin/ip addr add 0.0.0.0/0 dev ${VZDEV}
-+ ip addr add 0.0.0.0/0 dev ${VZDEV}
-
- ebegin "Configuring interface ${VZDEV}"
-- /sbin/sysctl -q -w net.ipv4.conf.${VZDEV}.send_redirects=0
-+ sysctl -q -w net.ipv4.conf.${VZDEV}.send_redirects=0
- eend $?
-
-- if [ "x$(/sbin/sysctl -n -e net.ipv4.ip_forward)" != "x1" ]; then
-+ if [ "x$(sysctl -n -e net.ipv4.ip_forward)" != "x1" ]; then
- ewarn "It looks like you have ip forwarding disabled. To make networking"
- ewarn "available for containers, please, run sysctl -w net.ipv4.ip_forward=1"
- fi
-@@ -119,15 +119,15 @@ start_net() {
- stop_net() {
- local mod
-
-- if /sbin/ip addr list | grep -q "venet0:.*UP" 2>/dev/null; then
-+ if ip addr list | grep -q "venet0:.*UP" 2>/dev/null; then
- ebegin "Bringing down interface ${VZDEV}"
-- /sbin/ip link set ${VZDEV} down 2>/dev/null
-+ ip link set ${VZDEV} down 2>/dev/null
- eend $?
- fi
-
- # remove all modules we probably loaded on start_net
- for mod in ${NET_MODULES}; do
-- /sbin/modprobe -r ${mod} > /dev/null 2>&1
-+ modprobe -r ${mod} > /dev/null 2>&1
- done
- }
-
-@@ -146,7 +146,7 @@ start_ve() {
- # Then sort by bootorder
- test -n "$velist" && velist=$(vzlist -aH -octid -s-bootorder $velist)
-
-- /sbin/sysctl -q -w net.ipv4.route.src_check=0
-+ sysctl -q -w net.ipv4.route.src_check=0
-
- for veid in ${velist}; do
- ebegin "Starting CT ${veid}"
-@@ -302,16 +302,16 @@ start() {
-
- ebegin "Loading OpenVZ modules"
- for mod in ${IPTABLES_MODULES}; do
-- /sbin/modprobe ${mod} >/dev/null 2>&1
-+ modprobe ${mod} >/dev/null 2>&1
- done
-
- for mod in ${PRELOAD_MODULES}; do
-- /sbin/modprobe -r ${mod} >/dev/null 2>&1
-- /sbin/modprobe ${mod} >/dev/null 2>&1
-+ modprobe -r ${mod} >/dev/null 2>&1
-+ modprobe ${mod} >/dev/null 2>&1
- done
-
- for mod in ${MODULES}; do
-- /sbin/modprobe ${mod} >/dev/null 2>&1
-+ modprobe ${mod} >/dev/null 2>&1
- rc=$?
- if [ ${rc} -ne 0 ]; then
- eend ${rc} "failed to load module ${mod}"
-@@ -320,7 +320,7 @@ start() {
- done
-
- for mod in ${MIGRATE_MODULES} ${PLOOP_MODULES}; do
-- /sbin/modprobe ${mod} >/dev/null 2>&1
-+ modprobe ${mod} >/dev/null 2>&1
- done
- eend
-
-@@ -365,15 +365,15 @@ stop() {
- stop_net
-
- for mod in ${MIGRATE_MODULES} ${PLOOP_MODULES}; do
-- /sbin/modprobe -r ${mod} > /dev/null 2>&1
-+ modprobe -r ${mod} > /dev/null 2>&1
- done
-
- for mod in ${MODULES}; do
-- /sbin/modprobe -r ${mod} > /dev/null 2>&1
-+ modprobe -r ${mod} > /dev/null 2>&1
- done
-
- for mod in ${PRELOAD_MODULES}; do
-- /sbin/modprobe -r ${mod} > /dev/null 2>&1
-+ modprobe -r ${mod} > /dev/null 2>&1
- done
-
- # Even if some modules failed to unload (say they were not loaded)
diff --git a/sys-cluster/vzctl/files/vzctl-initscript-typo-patch-4.8.patch b/sys-cluster/vzctl/files/vzctl-initscript-typo-patch-4.8.patch
deleted file mode 100644
index ee4818f19d27..000000000000
--- a/sys-cluster/vzctl/files/vzctl-initscript-typo-patch-4.8.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From: Kir Kolyshkin <kir@openvz.org>
-Date: Tue, 14 Oct 2014 09:22:49 +0000 (-0700)
-Subject: init.d/vz-gentoo: fix a typo
-X-Git-Url: http://git.openvz.org/?p=vzctl;a=commitdiff_plain;h=7dd296400299f13964b2665792fbe1ea89ac6241
-
-init.d/vz-gentoo: fix a typo
-
-As reported in
-
-http://forum.openvz.org/index.php?t=msg&th=12775&S=cec69936a4b7d441bf7f44478dbb6c3c#msg_51690
-
-there's a missing bracket.
-
-This is a fix to commit 8e7fdb5.
-
-Reported-by: Sergey Ya Korshunoff
-Signed-off-by: Kir Kolyshkin <kir@openvz.org>
----
-
-diff --git a/etc/init.d/vz-gentoo.in b/etc/init.d/vz-gentoo.in
-index d937408..c7b5604 100755
---- a/etc/init.d/vz-gentoo.in
-+++ b/etc/init.d/vz-gentoo.in
-@@ -202,7 +202,7 @@ start_ve() {
-
- get_parallel()
- {
-- [ -n "${VE_PARALLEL}" -a "${VE_PARALLEL" != "0" ] && return
-+ [ -n "${VE_PARALLEL}" -a "${VE_PARALLEL}" != "0" ] && return
- VE_PARALLEL=`awk '
- BEGIN { num=0; }
- $1 == "processor" { num++; }