Do not force EXTRA packages installation for the "optimized" images (i.e. CP_PIPE_COMMON_ENABLED is set to false)
@@ -1743,6 +1743,7 @@ fi
echo "Install additional packages"
echo "-"
+if [ "$CP_PIPE_COMMON_ENABLED" != "false" ]; then
EXTRA_PKG_INSTALL_COMMAND=
EXTRA_PKG_DISTRO_INSTALL_COMMAND=
if [ "$CP_CAP_EXTRA_PKG" ]; then
@@ -1755,14 +1756,17 @@ elif ([ "$CP_OS" == "debian" ] || [ "$CP_OS" == "ubuntu" ]) && [ "$CP_CAP_EXTRA_
fi
if [ "$EXTRA_PKG_INSTALL_COMMAND" ]; then
- echo "Installing COMMON extra packages"
+ echo "Installing COMMON extra packages: $CP_CAP_EXTRA_PKG"
eval "$EXTRA_PKG_INSTALL_COMMAND"
fi
if [ "$EXTRA_PKG_DISTRO_INSTALL_COMMAND" ]; then
- echo "Installing extra packages for $CP_OS"
+ echo "Installing extra packages for ${CP_OS}: ${CP_CAP_EXTRA_PKG_RHEL}${CP_CAP_EXTRA_PKG_DEB}"
eval "$EXTRA_PKG_DISTRO_INSTALL_COMMAND"
fi
+else
+ echo "CP_PIPE_COMMON_ENABLED is set to false, no extra packages will be installed to speed up the init process"
+fi
######################################################
