Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50490 - Hotplug fails to load net.eth0
Summary: Hotplug fails to load net.eth0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-08 14:58 UTC by Pavan
Modified: 2004-09-20 15:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavan 2004-05-08 14:58:23 UTC
All,
   Afer a emerge world, the hotplug package in my system was updated since then my net.eth0 doesn't come up. At times i get problems with my sound card.
   I got the following errors when i run /etc/init.d/hotplug restart (same as in boot time).

 * Starting input hotplugging...                                                                                                [ ok ]
  * Starting pci hotplugging...
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory
  /etc/hotplug/pci.rc: line 56: /sbin/hotplug: No such file or directory                                                             [ ok ]
   * Starting usb hotplugging...                                                                                                     [ ok ]

  When i looked at the /etc/hotplug/pci.rc: line 56 it refers to /sbin/hotplug pci where the /sbin/hotplug doesn't exisist.

  I looked around /etc/hotplug/input.rc & /etc/hotplug/usb.rc & noticed there that instead of calling /sbin/hotplug these scripts call /etc/hotplug/usb.agent < /dev/null. As a wild guess i tried the same pci.agent in the pci.rc & bingo it works.

  My uname -a gives 
   2.4.20-gentoo-r6 #1 SMP Sat Jan 31 10:12:04 EST 2004 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz GenuineIntel GNU/Linux
  i would have done emerge world a couple of weeks ago.

  ls -l /usr/portage/sys-apps/hot*
-rw-r--r--    1 root     root         1513 Apr 15  2004 hotplug-20040401.ebuild

  emerge -s hotplug output 
*  sys-apps/hotplug
      Latest version available: 20040401
      Latest version installed: 20040401
      Size of downloaded files: 40 kB
      Homepage:    http://linux-hotplug.sourceforge.net
      Description: USB and PCI hotplug scripts
      License:     GPL-2

*  sys-apps/hotplug-base
      Latest version available: 20040401
      Latest version installed: 20040401
      Size of downloaded files: 40 kB
      Homepage:    http://linux-hotplug.sourceforge.net
      Description: Base Hotplug framework
      License:     GPL-2

Please let me know if this is already noticed & fixed (i am guessing mostlikely).
if any additional info is need, please contact me & note that this is my first problem solving with gentoo & my first bug report too.
i am sorry if i missed something.
Thanks for a great distro.
Pavan
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-05-08 17:22:49 UTC
hotplug-base provide /sbin/hotplug, maybe try to re-emerge hotplug-base.
Comment 2 Pavan 2004-05-09 21:17:55 UTC
Responding to the comment below from  Lang Thang

I cannot re-emerge anything simply because my net access is gone & usually when i emerge <package> i get it from the mirrors.

Another thing i looked up help on emerge --help but didn't see how to re-emerge an exisiting package. 
Please keep in mind i am still new to gentoo & learning & the fix that helped me is in my bug post. i hope that is the fix else i have no clue as how else to fix this issue.
thanks
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-05-09 21:39:23 UTC
when I say re-emerge hotplug-base, I mean `emerge --oneshot hotplug-base`
Comment 4 Pavan 2004-05-12 22:09:47 UTC
Do you think it would be wise for me to do emerge --oneshot hotplug-base now when i fixed my system with at file change.
reason i ask is that i don't know much about these scripts i just happend to stumble upon that script file change. if re-emerge cause problems i won't be able to fix it without considerable amount time.
please advice.
Comment 5 Pavan 2004-05-12 22:11:09 UTC
instead of emerge --oneshot hotplug-base, is there any way i can view the files in the ebuild & then compare with the file change i made this way i won't have take a chance on the system & it would make my life easier.
Comment 6 Tuan Van (RETIRED) gentoo-dev 2004-05-12 22:42:28 UTC
sys-app/hotplug-base only install one file /sbin/hotplug

all the rc-scripts is installed by sys-app/hotplug.

If you want to compare, you can try:

# ebuild /usr/portage/sys-apps/hotplug/hotplug-20040401.ebuild setup
# ebuild /usr/portage/sys-apps/hotplug/hotplug-20040401.ebuild unpack
# cd /var/tmp/portage/hotplug-20040401/work/hotplug-2004_04_01/etc/hotplug/

and look in there.
Comment 7 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-20 15:57:30 UTC
Please install the hotplug-base package.  It provides the program you need.