9.60-1
This commit is contained in:
parent
245053800f
commit
6ebdb7b94e
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@
|
|||||||
/initscripts-9.56.1.tar.bz2
|
/initscripts-9.56.1.tar.bz2
|
||||||
/initscripts-9.58.tar.bz2
|
/initscripts-9.58.tar.bz2
|
||||||
/initscripts-9.59.tar.bz2
|
/initscripts-9.59.tar.bz2
|
||||||
|
/initscripts-9.60.tar.bz2
|
||||||
|
@ -1,56 +0,0 @@
|
|||||||
From 30ecd15eb772de10f9c2f94cc9bad4eac5439d24 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Ashish Samant <ashish.samant@oracle.com>
|
|
||||||
Date: Wed, 29 Oct 2014 17:47:29 -0700
|
|
||||||
Subject: [PATCH] improve_check_for_bond_master_in_install_bonding_driver
|
|
||||||
|
|
||||||
The current grep check (fgrep -sqx) in install_bonding_driver, to determine
|
|
||||||
whether bond master exists, fails when there are multiple bond masters.
|
|
||||||
The fix assumes that multiple bond masters are on different lines in the file
|
|
||||||
"/sys/class/net/bonding_masters", while they are in fact on the same line.
|
|
||||||
Since fgrep -sqx checks for the entire line,it will never match any one bond
|
|
||||||
master within the line and always fail if there are multiple bonds.
|
|
||||||
|
|
||||||
This patch improves the check by creating a new function, bond_master_exists()
|
|
||||||
to handle this and other conditions.
|
|
||||||
|
|
||||||
Orabug: 19897586
|
|
||||||
|
|
||||||
Signed-off-by: Ashish Samant <ashish.samant@oracle.com>
|
|
||||||
Signed-off-by: John Haxby <john.haxby@oracle.com>
|
|
||||||
Acked-by: Mukesh Kacker <mukesh.kacker@oracle.com>
|
|
||||||
---
|
|
||||||
sysconfig/network-scripts/network-functions | 16 ++++++++++++++--
|
|
||||||
1 file changed, 14 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
|
|
||||||
index 0e86efd..e6273bb 100644
|
|
||||||
--- a/sysconfig/network-scripts/network-functions
|
|
||||||
+++ b/sysconfig/network-scripts/network-functions
|
|
||||||
@@ -458,10 +458,22 @@ phy_wireless_device ()
|
|
||||||
cat /sys/class/net/$1/phy80211/name
|
|
||||||
}
|
|
||||||
|
|
||||||
+bond_master_exists ()
|
|
||||||
+{
|
|
||||||
+ local bond_name
|
|
||||||
+ [ -z "${1}" ] && return 1
|
|
||||||
+ [ ! -f /sys/class/net/bonding_masters ] && return 1
|
|
||||||
+
|
|
||||||
+ for bond_name in $(< /sys/class/net/bonding_masters); do
|
|
||||||
+ [ "${bond_name}" == "${1}" ] && return 0
|
|
||||||
+ done
|
|
||||||
+ return 1
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
install_bonding_driver ()
|
|
||||||
{
|
|
||||||
- [ ! -f /sys/class/net/bonding_masters ] && ( modprobe bonding || return 1 )
|
|
||||||
- if ! fgrep -sqx "$1" /sys/class/net/bonding_masters; then
|
|
||||||
+ if ! bond_master_exists ${1}; then
|
|
||||||
+ modprobe bonding || return 1
|
|
||||||
echo "+$1" > /sys/class/net/bonding_masters 2>/dev/null
|
|
||||||
fi
|
|
||||||
(
|
|
||||||
--
|
|
||||||
1.8.3.1
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
Summary: Scripts to bring up network interfaces and legacy utilities
|
Summary: Scripts to bring up network interfaces and legacy utilities
|
||||||
Name: initscripts
|
Name: initscripts
|
||||||
Version: 9.59
|
Version: 9.60
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: http://fedorahosted.org/releases/i/n/initscripts/
|
URL: http://fedorahosted.org/releases/i/n/initscripts/
|
||||||
Source: http://fedorahosted.org/releases/i/n/initscripts/initscripts-%{version}.tar.bz2
|
Source: http://fedorahosted.org/releases/i/n/initscripts/initscripts-%{version}.tar.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
@ -34,8 +34,6 @@ Requires(preun): /sbin/chkconfig
|
|||||||
BuildRequires: glib2-devel popt-devel gettext pkgconfig
|
BuildRequires: glib2-devel popt-devel gettext pkgconfig
|
||||||
Provides: /sbin/service
|
Provides: /sbin/service
|
||||||
|
|
||||||
Patch1: 0001-improve_check_for_bond_master_in_install_bonding_dri.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the script that activates and deactivates most
|
This package contains the script that activates and deactivates most
|
||||||
network interfaces, some utilities, and other legacy files.
|
network interfaces, some utilities, and other legacy files.
|
||||||
@ -54,8 +52,6 @@ Currently, this consists of various memory checking code.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
|
|
||||||
@ -193,8 +189,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/etc/profile.d/debug*
|
/etc/profile.d/debug*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Dec 08 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 9.59-2
|
* Tue Dec 16 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 9.60-1
|
||||||
- improve check for bond_master in install bonding driver
|
- improve_check_for_bond_master_in_install_bonding_driver
|
||||||
|
- network-functions: reeplace iwconfig with iw
|
||||||
|
- ifup: fix typo
|
||||||
|
- ifdown-ipv6: reset addrgenmode to eui64 for device
|
||||||
|
|
||||||
* Wed Nov 12 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 9.59-1
|
* Wed Nov 12 2014 Lukáš Nykrýn <lnykryn@redhat.com> - 9.59-1
|
||||||
- adjust LINKDELAY when STP is on
|
- adjust LINKDELAY when STP is on
|
||||||
|
Loading…
Reference in New Issue
Block a user