[Bug 256382] New: yast2-network seems to require ethtool
https://bugzilla.novell.com/show_bug.cgi?id=256382 Summary: yast2-network seems to require ethtool Product: openSUSE 10.3 Version: Alpha 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: kmachalkova@novell.com ReportedBy: locilka@novell.com QAContact: jsrain@novell.com CC: mzugec@novell.com Some part of the second stage installation (network proposal) calls `ethtool` command. This tool, or package is not required by yast2-network RPM and if you don't want to have it required, you should handle it somehow in the code: Such as: * disable the functionality provided by ethtool * install in runtime * ...? * or just require the package in RPM dependencies -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 ------- Comment #1 from locilka@novell.com 2007-03-21 08:06 MST ------- [bash] ShellCommand.cc(shellcommand):78 sh: ethtool: command not found -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 ------- Comment #2 from locilka@novell.com 2007-03-21 08:06 MST ------- Created an attachment (id=125726) --> (https://bugzilla.novell.com/attachment.cgi?id=125726&action=view) YaST logs -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 kmachalkova@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #3 from kmachalkova@novell.com 2007-04-27 05:55 MST ------- ethtool is called before the internet test, in order to find the best device for internet connection, i.e. the one that has link up. I'd like to replace ethtool call with something more handy because ethtool does not work e.g. on virtual network adapters on s390 -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 kmachalkova@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |snwint@novell.com ------- Comment #4 from kmachalkova@novell.com 2007-04-27 06:05 MST ------- hwinfo has 'Link:' key which (probably) provides the same functionality as ethtool and then grep for 'Link detected' But - seems that this information is not available everywhere. I have 1 machine with old Realtek RT8139 cards that happily provide 'Link' information and the other, with nVidia's Giga-byte GA-K8N onboard card (forcedeth driver), where hwinfo returns empty Link key. Steffen, how does all this work? Why certain cards provide hwinfo with link status information and the others do not? Can I rely upon hwinfo when I want to find out whether the device is connected to the cable/access point? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 ------- Comment #5 from snwint@novell.com 2007-04-27 06:49 MST ------- Unfortunately, not all cards provide link information and even worse, if they do, it is not always correct. At least that was my experience when I tried to use it in linuxrc. Was some time ago, though. Maybe worth a re-check. Anyway, the link info seems to be in sysfs now. So using ethtool should no longer be necessary. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 snwint@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|snwint@novell.com | ------- Comment #6 from snwint@novell.com 2007-04-27 06:54 MST ------- To clarify: libhd uses the ethtool ioctls, it does not run the _command_. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 ------- Comment #7 from kmachalkova@novell.com 2007-04-27 08:01 MST ------- 'cat /sys/class/net/eth0/device/eth0/carrier' is the right command. Works even for s390 virtual devices ;-) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 mzugec@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |snwint@novell.com ------- Comment #8 from mzugec@novell.com 2007-04-27 08:33 MST ------- Steffen, I think also hwinfo could read and provide that information from sysfs. For yast-network module of course that's not problem - not too much work, but it would be nice to have this information from tool which was made for this purpose. man hwinfo: .. hwinfo is used to probe for the hardware present in the system .. So I think hardware status should be part of this information, agree? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 kmachalkova@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kmachalkova@novell.com ------- Comment #9 from kmachalkova@novell.com 2007-05-02 05:40 MST ------- I've added IsConnected() function to NetworkDevices that returns link status for given device (reading sysfs) Let's make this hwinfo thingy (comment #8) a separate bug report (enhancement request respectively) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 kmachalkova@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC|kmachalkova@novell.com | Status|NEEDINFO |ASSIGNED Info Provider|snwint@novell.com | ------- Comment #10 from kmachalkova@novell.com 2007-05-02 05:41 MST ------- . -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 ------- Comment #11 from snwint@novell.com 2007-05-02 08:48 MST ------- Ok, changed hwinfo to try sysfs and ethtool to get the link state. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 ------- Comment #12 from kmachalkova@novell.com 2007-05-02 09:10 MST ------- Can we get some hwinfo STABLE pack (mbuild job etc.) for testing? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=256382 kmachalkova@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #13 from kmachalkova@novell.com 2007-05-17 09:33 MST ------- Link state of network devices is no longer obtained from ethtool. Fixed in yast2 2.15.33. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com