diskimage-builder/diskimage_builder/elements/zypper-minimal
Colleen Murphy ad67aa213b Allow zypper repos to be overrideable
Without this change, operating system elements that use the
zypper-minimal element always must use download.opensuse.org as their
repository source. This change makes ZYPPER_REPOS overrideable, which
allows the user to create custom operating system elements that can use
private repositories as their source for base packages. For example,
with only this change, it is possible to create a sles-minimal element
that generates a SLE 15 SP1 image just by overriding DIB_ZYPPER_REPOS
and DIB_OPENSUSE_PATTERNS.

Change-Id: I46e40fbe4408d4204056a27b182b21213f1176ff
2019-12-02 16:25:53 -08:00
..
post-install.d opensuse-minimal: install glibc-locale 2017-07-17 22:50:25 +02:00
pre-install.d Disable recommended package installations for zypper-minimal 2017-05-26 09:47:07 +02:00
root.d Allow zypper repos to be overrideable 2019-12-02 16:25:53 -08:00
element-deps Run dib-run-parts out of /tmp 2017-04-05 13:11:22 +10:00
package-installs.yaml elements: zypper-minimal: Install tar package 2017-07-25 16:27:25 +01:00
README.rst Allow zypper repos to be overrideable 2019-12-02 16:25:53 -08:00

==============
zypper-minimal
==============
Base element for creating minimal SUSE-based images

This element is incomplete by itself so you probably want to use it along
with the opensuse-minimal one. It requires 'zypper' to be installed on the
host.

To create a zypper-based image with non-default repositories, set
``DIB_ZYPPER_REPOS`` to a mapping of repository names to URLs, for example::

  DIB_ZYPPER_REPOS="update=>http://smt-mirror.example.com/SUSE:/SLE-15-SP1:/Update/standard/ "
  DIB_ZYPPER_REPOS+="SLE-15-SP1=>http://smt-mirror.example.com/ibs/SUSE:/SLE-15-SP1:/GA/standard/ "
  DIB_ZYPPER_REPOS+="SLE-15=>http://smt-mirror.example.com/ibs/SUSE:/SLE-15:/GA/standard/ "