[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] bootp: set is_def while processing dhcp ack
From: |
Nikunj A Dadhania |
Subject: |
Re: [PATCH] bootp: set is_def while processing dhcp ack |
Date: |
Thu, 17 Mar 2016 13:34:26 +0530 |
User-agent: |
Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-redhat-linux-gnu) |
Andrei Borzenkov <address@hidden> writes:
> On Thu, Mar 17, 2016 at 9:16 AM, Nikunj A Dadhania
> <address@hidden> wrote:
>> Andrei Borzenkov <address@hidden> writes:
>>
>>> On Wed, Mar 16, 2016 at 1:16 PM, Nikunj A Dadhania
>>> <address@hidden> wrote:
>>>> Hi Andrei,
>>>>
>>>>> If you call net_bootp manually,
>>>>
>>>> Thats what we are using in this current case, booting from the disk,
>>>> and the grub.cfg has a netboot entry.
>>>>
>>>> menuentry 'Linux dev netboot' --class os {
>>>> insmod net
>>>> insmod ofnet
>>>> insmod tftp
>>>>
>>>> net_bootp
>>>>
>>>> echo 'Network status: '
>>>> net_ls_cards
>>>> net_ls_addr
>>>> net_ls_routes
>>>>
>>>> echo 'Loading Linux ...'
>>>> linux (tftp)/ubuntu-installer/ppc64el/vmlinux tasks=standard
>>>> pkgsel/language-pack-patterns= pkgsel/install-language-support=false ---
>>>> quiet
>>>> initrd (tftp)/ubuntu-installer/ppc64el/initrd.gz
>>>> }
>>>>
>>>
>>> OK, so you attempt to configure everything. The first obvious question
>>> is - *which* interface should now become default? Your patch would
>>> make them compete, whoever is the last would win.
>>>
>>> We would need to define some mechanism to designate interface as "default"
>>> here.
>>>
>>>>> server is stored in environment variable net_<if>_dhcp_server_name;
>>>>> you are free to use it as needed, e.g. set $root and $prefix.
>>>>>
>>>
>>> You can already fetch this information from environment. Something like
>>>
>>> for i in 0 1 2 3 4 5; do
>>> eval "set ip=\$net_ofnet${i}_dhcp_server"
>>
>> I dont see net_ofnet0_dhcp_server or net_ofnet_dhcp_server set
>>
>
> This should be net_ofnet0_dhcp_server_name, sorry. What variables are
> set (could you show full list)?
?=0
cmdpath=(ieee1275/disk)
color_highlight=black/light-gray
color_normal=light-gray/black
default=
feature_200_final=y
feature_all_video_module=y
feature_chainloader_bpb=y
feature_default_font_path=y
feature_menuentry_id=y
feature_menuentry_options=y
feature_nativedisk_cmd=y
feature_ntldr=y
feature_platform_search_hint=y
feature_timeout_style=y
grub_cpu=powerpc
grub_platform=ieee1275
lang=
locale_dir=
menuentry_id_option=--id
net_default_interface=ofnet_net:dhcp
net_default_ip=(null)
net_default_mac=(null)
net_default_server=10.0.2.2
net_ofnet_net_dhcp_boot_file=ubuntu-installer/ppc64el/powerpc-ieee1275/core.elf
net_ofnet_net_dhcp_ip=10.0.2.15
net_ofnet_net_dhcp_mac=52:54:00:12:34:56
pager=1
prefix=(ieee1275/disk,msdos2)/grub
pxe_default_server=10.0.2.2
root=ieee1275/disk,msdos2
secondary_locale_dir=
timeout_style=menu
Regards
Nikunj
- [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/16
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Andrei Borzenkov, 2016/03/16
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/16
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/17
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Andrei Borzenkov, 2016/03/17
- Re: [PATCH] bootp: set is_def while processing dhcp ack,
Nikunj A Dadhania <=
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/17
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Andrei Borzenkov, 2016/03/17
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/17
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Andrei Borzenkov, 2016/03/17
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/18
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Andrei Borzenkov, 2016/03/18
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/18
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Andrei Borzenkov, 2016/03/18
- Re: [PATCH] bootp: set is_def while processing dhcp ack, Nikunj A Dadhania, 2016/03/18