[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: providing a static IP/Netmas/Gateway + location of a preseed file at boot prompt.



On 17/03/14 18:48, Mihamina Rakotomandimby wrote:
> Hi guys,
> 
> I would like to install my Debian machines with the Pressed D-I feature.
> 
> At this moment, I dont have a decent DHCP/BootP server yet, and waiting
> for this to be achieved, I want to manually provide the IP address at
> the boot prompt.
> 
> I already use it on others distributions install, but I miss the right
> syntax on Debian.
> 
> What I want is to issue something similar to
> 
> [...] ip=xxxxx netmask=yyyy gateway=zzzzz
> preseed/url=http://host/preseed.cfg
> 
> 
> My guess, reading the documentation is I cant directly put some preseed
> parameters in the boot parameters.
> What I want would be:
> 
> [...] netcfg/get_ipaddress=92.168.1.42 \
>       netcfg/get_netmask=255.255.255.0 \
>       netcfg/get_gateway=192.168.1.1 \
>       preseed/url=http://host/preseed.cfg
> 
> 
> Am I right?
> 
> 


Sort of, note "auto, confirm_static, and disable_dhcp" (the disable dhcp
may not be needed). If the default keymap works use the skip option I've
suggested - otherwise replace it with the one you use. Domain is optional.

Note also that the backslash is not needed.

Essentially you need to supply all the answers to question up to and
including network configuration - then your preseed file will supply the
rest.

auto=true priority=critical locale=$YourCountry.UTF-8 keymap=skip-config
netcfg/disable_dhcp=true netcfg/confirm_static=true
netcfg/get_ipaddress=192.168.0.56 netcfg/get_netmask=255.255.255.0
netcfg/get_gateway=192.168.0.6 netcfg/get_nameservers=8.8.8.8 8.8.8.4
modules=usb-storage hostname=preseed domain=dev auto
url=192.168.0.2/preseed.cfg


Kind regards


Reply to: