repurposing dhcp command

Hi. Basically, bootp command and dhcp command have the same logic, no difference whatsoever. Also, sometimes, It's needed to just acquire an IP address using dhcp and boot in some other way (NFS).
I'm suggesting repurposing the dhcp command to only do DHCP IP address acquisition. Users could use "bootp" command instead, or just type "dhcp && tftpboot"
What do you think ?
Thanks, Ramon.

On Fri, Jun 19, 2020 at 06:32:57PM +0300, Ramon Fried wrote:
Hi. Basically, bootp command and dhcp command have the same logic, no difference whatsoever. Also, sometimes, It's needed to just acquire an IP address using dhcp and boot in some other way (NFS).
I'm suggesting repurposing the dhcp command to only do DHCP IP address acquisition. Users could use "bootp" command instead, or just type "dhcp && tftpboot"
What do you think ?
This is what the autoload variable is for. Set it to no or false and dhcp (and bootp, iirc) will only acquire an address. It's been the documented / expected interface for far too long to change it as well.
participants (2)
-
Ramon Fried
-
Tom Rini