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

Debian install preseed passing parameters.



Hello.

I want to preseed a Debian Strech installation. I pass different parameters via params to kernel and other from preseed.cfg using a netboot setup.

This is how I start install:

initrd http://${next-server}/linux/debian/9.0.0/netboot-amd64/debian-installer/amd64/initrd.gz && chain http://${next-server}/linux/debian/9.0.0/netboot-amd64/debian-installer/amd64/linux vga=788 net.ifnames=0 biosdevname=0 priority=low language=en country=US locale=en_US.UTF-8 keyboard-configuration/xkb-keymap=us netcfg/disable_autoconfig=true netcfg/disable_dhcp=true netcfg/dhcp_options="Configure network manually" netcfg/get_ipaddress=${ip} netcfg/get_netmask=${netmask} netcfg/get_gateway=${gateway} netcfg/get_nameservers=${dns} netcfg/get_hostname=${hostname} netcfg/get_domain=${domain} netcfg/confirm_static=true ethdetect/prompt_missing_firmware=false hw-detect/load_firmware=false hw-detect/load_media=false netcfg/link_wait_timeout=3 DEBCONF_DEBUG=5 preseed/url=http://${next-server}/linux/debian/9.0.0/preseed.cfg --- text net.ifnames=0 biosdevname=0

I specify full network config but I still get the screen with question "Auto-configure networking?": <Yes>, <No>. Where <No> is selected.

How to get rid of this screen? I do not specify network config in preseed.cfg, as it is loaded after network is configured.

Also, I want to load some Installer components. In preseed.cfg I have:

d-i anna/choose_modules string openssh-client-udeb, ppp-udeb, parted-udeb, netcfg-static, lvmcfg

This are loaded. How to specify to load some components which have kernel version and architecture in theirs names? Like crypto-dm-modules-4.9.0-3-amd64-di or multipath-modules-4.9.0-3-amd64-di. If I specify using full name with kernel version, then in future this preseed.cfg will fail as version will change. I tried crypto-dm, crypto-dm-modules, crypto with no success. It has to be some general naming.

Thank you.


Reply to: