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

Debian-installer export custom variable



Hi, I want to install Debian on several machines via preseeding, and have a question about automating of this process:

 

Is it possible to define my own variable for example NUM=01 and use it for generating hostname?

 

i.e in preseed.cfg:

d-i netcfg/get_hostname string host$NUM

 

or in kernel option:

hostname=host$NUM

 

At this moment I have trobles due to exporting of values in quotes and the $NUM value is not reading.

 

 

Also I see that in some places d-i uses variables like for language packs in Ubuntu preseed:

 

d-i pkgsel/language-pack-patterns string language-pack-kde-$LL

 

--

Best regards

Leo Shadevsky


Reply to: