
This commit adds support for block packages via apt to image builder. Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com> Change-Id: Ia7504504c4415b38af862429a9e1f51a50da0bae
34 lines
1.6 KiB
Django/Jinja
34 lines
1.6 KiB
Django/Jinja
#jinja2: trim_blocks:False
|
|
[General]
|
|
arch={{ rootfs_arch }}
|
|
directory={{ rootfs_root }}
|
|
# same as --tidy-up option if set to true
|
|
cleanup=true
|
|
# same as --no-auth option if set to true
|
|
# keyring packages listed in each bootstrap will
|
|
# still be installed.
|
|
noauth=false
|
|
# extract all downloaded archives (default is true)
|
|
unpack=true
|
|
#omitrequired=true
|
|
# enable MultiArch for the specified architectures
|
|
# default is empty
|
|
#multiarch=allowed
|
|
# apt preferences file
|
|
aptpreferences=pref.conf
|
|
# the order of sections is not important.
|
|
# the bootstrap option determines which repository
|
|
# is used to calculate the list of Priority: required packages.
|
|
# "bootstrap" lists the repos which will be used to create the multistrap itself. Only
|
|
# Packages listed in "bootstrap" will be downloaded and unpacked by multistrap.
|
|
bootstrap={% set space = joiner(" ") %}{% for repo in repos %}{{ space() }}{{ repo.name }}{% endfor %}
|
|
# aptsources is a list of sections to be used for downloading packages
|
|
# and lists and placed in the /etc/apt/sources.list.d/multistrap.sources.list
|
|
# of the target. Order is not important
|
|
aptsources={% set space = joiner(" ") %}{% for repo in repos %}{% if repo.register_repo_with_rootfs == true %}{{ space() }}{{ repo.name }}{% endif %}{% endfor %}
|
|
|
|
{% for repo in repos %}
|
|
[{{ repo.name }}]
|
|
{% set newline = joiner("\n") %}{% for key, value in repo.items() %}{% if ( key != 'name' ) and ( key != 'keyring_url' ) %}{{ newline() }}{% if key == 'keyring_pkg' %}keyring{% else %}{{ key }}{% endif %}={% if value %}{% if key == 'packages' %}{{ value|join(' ') }}{% else %}{{ value }}{% endif %}{% endif %}{% endif %}{% endfor %}
|
|
{% endfor %}
|