Tiny Core Base > TCB Talk

Network adapters sometimes not available after boot

(1/3) > >>

andyj:
I've noticed an intermittent problem with both x86 and x86_64 during tc-config. If using PXE and httplist with nodhcp, the ethernet adapters (using e1000 module) are sometimes not available, so the boot fails. Fail means no extensions are loaded so no services are running. Usually eth0 has the IP address assigned to it from the bootp server. I don't see where in tc-config the ethernet device status is checked if not using DHCP before trying httplist. At some point either the ethernet adapter has to become available, or reboot and see if that fixes it. This is using 8.1rc2 for what it's worth, but I've noticed it on 8.0 and 7.x before.

curaga:
This is the first I've heard of this, but you're probably right. Patches welcome.

andyj:
/etc/init.d/dhcp.sh runs whether or not nodhcp is given on the boot command line if httplist is used. In fact I don't see anywhere a method of using static IP addresses. Currently I do that in /opt/bootlocal.sh, but it should happen sooner if httplist is going to work consistently. If I'm going to write a patch, it would be something like "if nodhcp then do static IP config, and don't run dhcp.sh." The appropriate place looks like where the loopback address is set, since it's the first static IP. There are lots of ways to do this. What would a TC way look like? Unless a configuration file is in a supplemental initrd, how could addresses be available? Cluttering up the boot command line doesn't seem like my first choice, but I don't see another way.

gerald_clark:
How do you intend to PXE boot without dhcp?
Why not set a reservation in your dhcp server?

andyj:
The IP address that the bootp server gives the PXE boot environment is usually the one the system will use after boot, but it doesn't have to be. It only has to work for the PXE boot loader to find the TFTP server. The kernel doesn't know anything of the PXE environment, and so has to start over via init.

Navigation

[0] Message Index

[#] Next page

Go to full version