[Bug 414191] New: mkinitrd: 82-network. sh - problem with get_default_interface
https://bugzilla.novell.com/show_bug.cgi?id=414191 User burnus@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=414191#c410013 Summary: mkinitrd: 82-network.sh - problem with get_default_interface Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: burnus@gmx.de QAContact: qa@suse.de Found By: --- This is with Factory's mkinitrd-2.4-2 * Thu Jul 24 2008 hare@suse.de - Don't overwrite interface settings (bnc#410013) [...] 82-network.sh contains: # get the default interface if requested if [ -z "$interface" -o "$interface" = "default" ]; then ifspec=$(get_default_interface) The assignment gives: ifspec=wlan0proto static /static and then interface="wlan0proto static " (note also the trailing space). Not surprisingly, this causes problems at: if [ -n "$interface" ] ; then # Pull in network module if [ -d /sys/class/net/$interface/device ] ; then * * * Some more debugging information: /etc/install.inf does not exist. grep STARTMODE /etc/sysconfig/network/ifcfg-* shows: /etc/sysconfig/network/ifcfg-eth0:STARTMODE='hotplug' /etc/sysconfig/network/ifcfg-lo:STARTMODE=onboot /etc/sysconfig/network/ifcfg-wlan0:STARTMODE='manual' Thus there is no "nfsroot" and the following is used: /sbin/ip route | sed -n 's/default .* dev \([[:alnum:]]*\) */\1/p' which returns: wlan0proto static $ /sbin/ip route 192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.198 127.0.0.0/8 dev lo scope link default via 192.168.0.1 dev wlan0 proto static -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=414191 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |hare@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=414191 User hare@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=414191#c1 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Hannes Reinecke <hare@novell.com> 2008-09-03 02:48:07 MDT --- Correct, the correct sed syntax is: s/default .* dev \([[:alnum:]]*\) *.*/\1/p -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=414191 User hare@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=414191#c2 Hannes Reinecke <hare@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Hannes Reinecke <hare@novell.com> 2008-09-03 02:53:14 MDT --- Added to the mkinitrd git tree. Will be in the next snapshot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com