Steve Baker 14c651ca44 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
2024-09-04 09:23:00 +12:00

13 lines
261 B
Bash
Executable File

#!/bin/bash
# These are useful, or at worst not harmful, for all images we build.
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
if [ ${DIB_SKIP_BASE_PACKAGE_INSTALL} -eq 0 ]; then
install-packages -m base iscsi_package
fi