|
|
@ -248,18 +248,18 @@ case $mode in |
|
|
|
docker exec ${DOCKER_ID} update-locale LANG=${LANG} |
|
|
|
docker exec ${DOCKER_ID} update-locale LANG=${LANG} |
|
|
|
fi |
|
|
|
fi |
|
|
|
OPTIONS='-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y --force-yes --no-install-suggests --no-install-recommends' |
|
|
|
OPTIONS='-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y --force-yes --no-install-suggests --no-install-recommends' |
|
|
|
PREVENT='libpam-systemd- policykit*- colord-' |
|
|
|
PREVENT='libpam-systemd policykit.* colord dconf-service' |
|
|
|
for f in 'libpam-systemd' 'policykit*' 'colord'; do |
|
|
|
for f in ${PREVENT}; do |
|
|
|
docker exec ${DOCKER_ID} bash -c "echo 'Package: $f' >> /etc/apt/preferences" |
|
|
|
docker exec ${DOCKER_ID} bash -c "echo 'Package: ${f}' >> /etc/apt/preferences" |
|
|
|
docker exec ${DOCKER_ID} bash -c "echo 'Pin-Priority: -100' >> /etc/apt/preferences" |
|
|
|
docker exec ${DOCKER_ID} bash -c "echo 'Pin-Priority: -100' >> /etc/apt/preferences" |
|
|
|
docker exec ${DOCKER_ID} bash -c "echo >> /etc/apt/preferences" |
|
|
|
docker exec ${DOCKER_ID} bash -c "echo >> /etc/apt/preferences" |
|
|
|
done |
|
|
|
done |
|
|
|
docker exec ${DOCKER_ID} apt-get update ${OPTIONS} |
|
|
|
docker exec ${DOCKER_ID} apt-get update ${OPTIONS} |
|
|
|
docker exec ${DOCKER_ID} apt-mark hold 'libpam-systemd' 'policykit*' 'colord' |
|
|
|
docker exec ${DOCKER_ID} apt-mark hold ${PREVENT} |
|
|
|
docker exec ${DOCKER_ID} apt-get upgrade ${OPTIONS} |
|
|
|
docker exec ${DOCKER_ID} apt-get upgrade ${OPTIONS} |
|
|
|
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT} python-software-properties software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ |
|
|
|
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT// /- }- python-software-properties software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ |
|
|
|
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT} software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ |
|
|
|
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT// /- }- software-properties-common apt-transport-https dpkg-dev lsb-release wget || \ |
|
|
|
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT} python-software-properties apt-transport-https dpkg-dev lsb-release wget; |
|
|
|
docker exec ${DOCKER_ID} apt-get install ${OPTIONS} ${PREVENT// /- }- python-software-properties apt-transport-https dpkg-dev lsb-release wget; |
|
|
|
for key in "${keys[@]}"; do |
|
|
|
for key in "${keys[@]}"; do |
|
|
|
wget -O- "$key" \ |
|
|
|
wget -O- "$key" \ |
|
|
|
| docker exec -i ${DOCKER_ID} apt-key add - |
|
|
|
| docker exec -i ${DOCKER_ID} apt-key add - |
|
|
@ -267,6 +267,9 @@ case $mode in |
|
|
|
for repo in "${repos[@]}"; do |
|
|
|
for repo in "${repos[@]}"; do |
|
|
|
ifthenelse "${repo}" "apt-add-repository 'ARG'" |
|
|
|
ifthenelse "${repo}" "apt-add-repository 'ARG'" |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docker exec ${DOCKER_ID} apt-get update ${OPTIONS} |
|
|
|
docker exec ${DOCKER_ID} apt-get update ${OPTIONS} |
|
|
|
for package in "${packages[@]}"; do |
|
|
|
for package in "${packages[@]}"; do |
|
|
|
ifthenelse "${package}" "apt-get install ${OPTIONS} ${PREVENT} ARG" |
|
|
|
ifthenelse "${package}" "apt-get install ${OPTIONS} ${PREVENT} ARG" |
|
|
|