Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.)

share|improve this question

1 Answer 1

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:

    preseed apt-setup/local0/comment string My repository
    preseed apt-setup/local0/repository string http://www.example.org/packages/${distro} ${suite} main
    preseed apt-setup/local0/source boolean true
    preseed apt-setup/local0/key string http://www.example.org/packages/public.gpg
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.