17 lines
409 B
Bash
17 lines
409 B
Bash
INSTALL_PACKAGES=''
|
|
|
|
check_install() {
|
|
if [ ! -e "${1}" ]; then
|
|
INSTALL_PACKAGES="${INSTALL_PACKAGES} ${2}"
|
|
fi
|
|
}
|
|
|
|
install_packages() {
|
|
if [ ! -z "${INSTALL_PACKAGES}" ]; then
|
|
echo "Installing packages: ${INSTALL_PACKAGES}" >&2
|
|
nsenter -m -u -i -n -p -t 1 \
|
|
rpm-ostree install -y --allow-inactive --idempotent --apply-live \
|
|
${INSTALL_PACKAGES}
|
|
fi
|
|
}
|