According to the Ubuntu installation guide, automated installs are possible using kickseed, a subset of the RedHat's Kickstart configuration. The automatic install section of the installation guide details the differences between RH's kickstart and Ubuntu's kickseed.
However, nothing is written about the repo command, which in
Kickstart is used to enable additional repositories. The format of RH
and Ubuntu repositories is different: just the repository URL is
enough to identify the repo in RH derivatives, whereas a line in
/etc/apt/sources.list.d
carries more information.
Can anybody please post an example of a repo
line in Ubuntu's
kickseed, or point me to the appropriate documentation? (Or even the
relevant section of the kickseed source code?)
(Background story: I want to automate Ubuntu installs; our standard install includes some packages that are not publicly available, and that we distribute via a local private repository.)
A workaround seems to use the
preseed
command (documented in the Ubuntu install guide as a Kickseed-specific addition) to embed a snippet of the corresponding D-I configuration, defining additional repositories as would be done in a preseed-format file.For example:
Looking at the source in the kickseed repo the repo directive has been extended to support a few more options:
So to add the Google Chrome repo, this should do: