issue with $netdevices_up and squeeze
David Dreezer
dave at socialstrata.com
Tue Dec 14 05:50:58 CET 2010
Hi Thomas,
This did not work, unfortunately. I patched the get-boot-info script yet FAI still thinks eth1 is up. If I ssh to the client machine and run that line manually then echo $netdevices_up I see only eth0, however boot.log shows this:
netdevices_all="eth0
eth1"
netdevices_up="eth0
eth1"
netdevices="eth0
eth1"
BROADCAST='10.0.1.255'
[cut]
I'm not sure what the next step is.
David Dreezer
Customer Advocate, Social Strata, Inc.
Online Community HQ Since 1996
Hoop.la · LiveCloud · Eve Community
Follow us: @socialstrata
On Dec 13, 2010, at 6:14 AM, Thomas Lange wrote:
>>>>>> On Sun, 12 Dec 2010 16:38:23 -0800, David Dreezer <dave at socialstrata.com> said:
>
>> get-boot-info determines $netdevices_up like so:
>
>> netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
>
> I think will will fix it even with lenny.
>
> Index: get-boot-info
> ===================================================================
> --- get-boot-info (revision 6195)
> +++ get-boot-info (working copy)
> @@ -41,7 +41,7 @@
> netdevice_info() {
>
> # devices that are running
> - netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
> + netdevices_up=$(ip link show up | grep "^[1-9$].*LOWER_UP" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
> # netdevices is the list of ethernet devices which will be used for bootpc (maybe dhcp)
> # if not defined, use boot messages to determine network devices
> [ -n "$netdevices" ] || netdevices=$netdevices_up
>
>
> --
> regards Thomas
More information about the linux-fai
mailing list