Merge "Add DIB_SKIP_BASE_PACKAGE_INSTALL to base element"

This commit is contained in:
Zuul 2024-09-04 02:11:42 +00:00 committed by Gerrit Code Review
commit b62a6e01cb
3 changed files with 9 additions and 2 deletions
diskimage_builder/elements/base

@ -28,6 +28,10 @@ update.
* set 'DIB_AVOID_PACKAGES_UPDATE' to '1' to avoid updating all packages.
The 'DIB_SKIP_BASE_PACKAGE_INSTALL' environment variable can be used to
avoid installing base packages, set to '1' to skip.
Notes:
* If you are getting warnings during the build about your locale

@ -1 +1,2 @@
export DIB_AVOID_PACKAGES_UPDATE=${DIB_AVOID_PACKAGES_UPDATE:-0}
export DIB_AVOID_PACKAGES_UPDATE=${DIB_AVOID_PACKAGES_UPDATE:-0}
export DIB_SKIP_BASE_PACKAGE_INSTALL=${DIB_SKIP_BASE_PACKAGE_INSTALL:-0}

@ -7,4 +7,6 @@ fi
set -eu
set -o pipefail
install-packages -m base iscsi_package
if [ ${DIB_SKIP_BASE_PACKAGE_INSTALL} -eq 0 ]; then
install-packages -m base iscsi_package
fi