Hello community, here is the log from the commit of package sysconfig for openSUSE:11.3 checked in at Fri Jul 1 13:26:28 CEST 2011.
-------- --- old-versions/11.3/UPDATES/all/sysconfig/sysconfig.changes 2011-02-14 14:59:51.000000000 +0100 +++ 11.3/sysconfig/sysconfig.changes 2011-06-09 17:28:10.000000000 +0200 @@ -1,0 +2,18 @@ +Thu Jun 9 14:58:52 UTC 2011 - [email protected] + +- Fixed get_depending_ifaces to not return bonding slaves by + default as it is not required to stop the slaves before the + bonding master goes down and in fact it may cause a system + hang, when the slaves are infiniband child interfaces, that + are deleted while ifdown (bnc#698478). +- Fixed to use 600 mode in spec attr for ifcfg-lo to avoid that + rpm -V report it as modified because of the chmod added to the + post-install script in bnc#670871. + +------------------------------------------------------------------- +Tue Jun 7 19:20:43 CEST 2011 - [email protected] + +- Added WIRELESS_AUTH_MODE='no-encryption' option handling to + ifup-wireless, because YaST sets it (bnc#648830). + +------------------------------------------------------------------- calling whatdependson for 11.3-i586 New: ---- 0008-ifup-wireless-no-encryption-option.bnc648830.patch 0009-do-not-stop-bonding-slaves-first.bnc698478.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sysconfig.spec ++++++ --- /var/tmp/diff_new_pack.9egB9H/_old 2011-07-01 13:25:11.000000000 +0200 +++ /var/tmp/diff_new_pack.9egB9H/_new 2011-07-01 13:25:11.000000000 +0200 @@ -20,7 +20,7 @@ Name: sysconfig Version: 0.73.7 -Release: 2.<RELEASE7> +Release: 2.<RELEASE9> Summary: The system configuration scheme Group: System/Base License: GPLv2+ @@ -36,6 +36,8 @@ Patch5: 0005-Fixed-link_wait-scriptname-check-and-ping-usage.patch Patch6: 0006-Fixed-ifup-bonding-to-not-fail-on-enslave-errors.patch Patch7: 0007-udevmountd-allow-mounting-of-multipath-devices.patch +Patch8: 0008-ifup-wireless-no-encryption-option.bnc648830.patch +Patch9: 0009-do-not-stop-bonding-slaves-first.bnc698478.patch %description This package provides the SuSE system configuration scheme and @@ -62,6 +64,8 @@ %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 +%patch9 -p1 %build autoreconf --force --install @@ -98,7 +102,7 @@ /etc/init.d/* %ghost /etc/sysconfig/network/config %ghost /etc/sysconfig/network/dhcp -%config(noreplace) /etc/sysconfig/network/ifcfg-lo +%config(noreplace) %attr(600,root,root) /etc/sysconfig/network/ifcfg-lo %config(noreplace) /etc/sysconfig/network/ifroute-lo %config(noreplace) /etc/ppp/ip-up %config(noreplace) /etc/ppp/ip-down ++++++ 0008-ifup-wireless-no-encryption-option.bnc648830.patch ++++++ >From 8064ca59488527584852bdc2e8d20c7b3eb051c3 Mon Sep 17 00:00:00 2001 From: Vladimir Botka <[email protected]> Date: Wed, 8 Jun 2011 22:00:08 +0200 Subject: [PATCH] no-encryption option added to the WIRELESS_AUTH_MODE (bnc#213001) introduced no-encryption option in Yast, but this option has never been implemented in the sysconfig. The differnece between no-encryption and open is that open system can use user authentication. In both cases key_mgmt=NONE option shall be put into the wpa_supplicant.conf (bnc#648830). Signed-off-by: Marius Tomaschewski <[email protected]> --- scripts/ifup-wireless | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ifup-wireless b/scripts/ifup-wireless index 259d2f2..fb0582b 100755 --- a/scripts/ifup-wireless +++ b/scripts/ifup-wireless @@ -301,7 +301,7 @@ EOL # special hack for madwifi test "$DRIVER" = "ath_pci" && run_iw_tool priv authmode 2 ;; - open|opensystem|"") WIRELESS_SEC_MODE="open";; + open|opensystem|no-encryption|"") WIRELESS_SEC_MODE="open";; esac fi if [ -n "$WIRELESS_KEY_0" -a \ @@ -400,7 +400,7 @@ setup_wlanngdev() wlanctl dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true AUTHTYPE=sharedkey ;; - open|opensystem|"") + open|opensystem|no-encryption|"") wlanctl dot11req_mibset mibattribute=dot11ExcludeUnencrypted=false AUTHTYPE=opensystem ;; @@ -537,7 +537,7 @@ print_network_block() print_network_line ssid WIRELESS_ESSID "$SUFFIX" print_network_line_unquoted priority WIRELESS_PRIORITY "$SUFFIX" case "`eval echo \\$WIRELESS_AUTH_MODE$SUFFIX`" in - open) + open|no-encryption) echo " key_mgmt=NONE" for i in 0 1 2 3 ; do KEY="`eval print_key \\"\\$WIRELESS_KEY_$i$SUFFIX\\" \\$WIRELESS_KEY_LENGTH$SUFFIX`" -- 1.7.3.4 ++++++ 0009-do-not-stop-bonding-slaves-first.bnc698478.patch ++++++ >From 5a97c780567a8005e1ac1f25a005008301c091a3 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski <[email protected]> Date: Tue, 7 Jun 2011 17:18:59 +0200 Subject: [PATCH] Do not return bonding slaves in get_depending_ifaces Fixed get_depending_ifaces to not return bonding slaves by default as it is not required to stop the slaves before the bonding master goes down and in fact it may cause a system hang, when the slaves are infiniband child interfaces, that are deleted while ifdown (bnc#698478). Signed-off-by: Marius Tomaschewski <[email protected]> --- scripts/functions | 34 ++++++++++++++++++++++------------ 1 files changed, 22 insertions(+), 12 deletions(-) diff --git a/scripts/functions b/scripts/functions index 9000c16..3948bca 100644 --- a/scripts/functions +++ b/scripts/functions @@ -537,14 +537,24 @@ has_link () { # This function looks for interfaces which depend on the given interface. It # prints a list with all depending interfaces. It returns 0 if there are # depending interfaces and !=0 if not. -# Currently it checks only for vlan and bonding interfaces. +# Currently it checks only for vlan and optionally bonding slave interfaces. # FIXME: Add other types of interfaces that depend on others. get_depending_ifaces() { - local VLAN_PATH BOND_PATH DEP_IFACES DEP_VLANS DEP_BONDS BASE_IFACE i + local VLAN_PATH BOND_PATH DEP_VLANS DEP_BONDS BASE_IFACE i + local -a DEP_IFACES=() VLAN_PATH="/proc/net/vlan" - BOND_PATH="/proc/net/bonding" + BOND_PATH="" + while [ $# -gt 0 ]; do + case $1 in + --with-bonding-slaves) + BOND_PATH="/proc/net/bonding" + shift + ;; + -*) shift ;; + *) break ;; + esac + done BASE_IFACE="$1" - DEP_IFACES="" if [ -z "$BASE_IFACE" ]; then return 1 @@ -553,14 +563,14 @@ get_depending_ifaces() { if [ -d "$VLAN_PATH" ]; then DEP_VLANS=`cd "$VLAN_PATH" grep -lws "Device: *$BASE_IFACE" *` - DEP_IFACES="$DEP_VLANS" + DEP_IFACES+=($DEP_VLANS) fi - if [ -d "$BOND_PATH" ]; then + if [ -n "$BOND_PATH" -a -d "$BOND_PATH" ]; then DEP_BONDS=`cd "$BOND_PATH" grep -s '^Slave Interface:' $BASE_IFACE | while IFS=':' read text iface ; do echo -n "$iface" ; done` - DEP_IFACES="$DEP_IFACES${DEP_BONDS:+ $DEP_BONDS}" + DEP_IFACES+=($DEP_BONDS) fi case $BASE_IFACE in @@ -569,18 +579,18 @@ get_depending_ifaces() { for i in `ls -1 /sys/class/net/ 2>/dev/null` ; do test -d /sys/class/net/$i || continue case $i in (${BASE_IFACE}.*) - DEP_IFACES="${DEP_IFACES}${i:+ $i}" + DEP_IFACES+=($i) ;; esac done ;; esac - if [ -z "$DEP_IFACES" ]; then - return 1 - else - echo "$DEP_IFACES" + if [ ${#DEP_IFACES[*]} -gt 0 ]; then + echo "${DEP_IFACES[*]}" return 0 + else + return 1 fi } -- 1.7.3.4 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
