Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
dracut.4115
0305-static_network_setup_return_zero.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0305-static_network_setup_return_zero.patch of Package dracut.4115
From: Thomas Blume <thomas.blume@suse.com> Subject: Unset gateway variable if emtpy If the gateway variable is empty (ie '::' for IPv6 or '0.0.0.0' for IPv4) it should be unset. References: bsc#919179 Signed-off-by: Thomas Blume <thomas.blume@suse.com> diff -Naur a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh --- a/modules.d/40network/ifup.sh 2015-07-14 09:33:13.573902381 +0200 +++ b/modules.d/40network/ifup.sh 2015-07-29 07:43:43.652788589 +0200 @@ -298,10 +298,12 @@ # note no ip addr flush for ipv6 ip addr add $ip/$prefix ${srv:+peer $srv} dev $netif wait_for_ipv6_dad $netif + [ "$gw" = "::" ] && gw="" else # Assume /24 prefix for IPv4 [ -z "$prefix" ] && prefix=24 ip addr add $ip/$prefix ${srv:+peer $srv} brd + dev $netif + [ "$gw" = "0.0.0.0" ] && gw="" fi [ -n "$gw" ] && echo ip route add default via $gw dev $netif > /tmp/net.$netif.gw @@ -319,6 +321,9 @@ done [ -n "$hostname" ] && echo "echo $hostname > /proc/sys/kernel/hostname" > /tmp/net.$netif.hostname + + [ $? -ne 0 ] && info "Static network setup returned $?" + return 0 } # loopback is always handled the same way
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor