Add DIB_SKIP_BASE_PACKAGE_INSTALL to base element
Along with DIB_AVOID_PACKAGES_UPDATE it is now possible to invoke the base element without invoking any package management. This is useful when using a dib created image as the base image. Change-Id: Ic6da340627bd55d4d34b1669ebf3a494131f72a6
This commit is contained in:
parent
52e2965c21
commit
14c651ca44
@ -28,6 +28,10 @@ update.
|
|||||||
|
|
||||||
* set 'DIB_AVOID_PACKAGES_UPDATE' to '1' to avoid updating all packages.
|
* 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:
|
Notes:
|
||||||
|
|
||||||
* If you are getting warnings during the build about your locale
|
* 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 -eu
|
||||||
set -o pipefail
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user