Making select_eth_device work with 2nd NIC linked only and FETCH assigned.
authorSteven Shiau <steven@nchc.org.tw>
Tue, 16 Mar 2010 17:56:01 +0000 (18:56 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:07 +0000 (17:48 +0100)
commit916bfc9fa4b28c67a8f29310cf9928a7e6995738
treea7145d283d839b044920d412788e6b5896e551f3
parentcae2693a5c6bc93bf8c0fb5ede1941dc5d871485
Making select_eth_device work with 2nd NIC linked only and FETCH assigned.

The differences:

  1. If user uses "FETCH", "HTTPFS", or "FTPFS", select_eth_device
     should not exit since network is also required to get the
     filesystem.squashfs.

  2. Files in "/sys/class/net/" maybe not be up so quick, so it's
     better to use a while loop to wait for that.

  3. Another case is, for example, if eth0 and eth1 are linked, but
     only eth1 is able to get filesystem.squashfs, the original
     select_eth_device will try eth0 only. It's better to provide an
     alternative way to allow user to specify the device in boot
     parameter. Here in the patch live-netdev=eth1, for example, can
     be used to make it.
scripts/init-premount/select_eth_device