8b83196024
in same cases it is required to avoid update all existing packages, doing so can result in release update which is currently not possible unless you not include "base" element. "base" element used for most distribution (rhel, debain), and is necessary for most cloud operations, this patch add "DIB_AVOID_PACKAGES_UPDATE" parameter to skip updating all packages. usecases for this patch can be: * Avoid release update when building old release ex. RHEL7.5. * build on network-less environment. usage: DIB_AVOID_PACKAGES_UPDATE=1 or DIB_AVOID_PACKAGES_UPDATE=0 Change-Id: I71192b23c8f0bc48b348fe7377bf8a2399b53792
14 lines
256 B
Bash
Executable File
14 lines
256 B
Bash
Executable File
#!/bin/bash
|
|
# Fully upgrade everything on the system (if the package manager knows how to
|
|
# do it).
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ ${DIB_AVOID_PACKAGES_UPDATE} -eq 0 ]; then
|
|
install-packages -u
|
|
fi
|