Skip to content

Commit

Permalink
Merge pull request #281 from dtantsur/no-docs
Browse files Browse the repository at this point in the history
Prevent installing docs via a DNF flag
  • Loading branch information
metal3-io-bot authored Jul 7, 2021
2 parents b72e06a + 178b767 commit 96eff7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions prepare-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

set -euxo pipefail

echo "install_weak_deps=False" >> /etc/dnf/dnf.conf
# Tell RPM to skip installing documentation
echo "tsflags=nodocs" >> /etc/dnf/dnf.conf

dnf install -y python3 python3-requests epel-release 'dnf-command(config-manager)'
dnf config-manager --set-disabled epel
curl https://raw.githubusercontent.com/openstack/tripleo-repos/master/tripleo_repos/main.py | python3 - -b master current-tripleo --no-stream
dnf upgrade -y
xargs -rtd'\n' dnf --setopt=install_weak_deps=False install -y < /tmp/${PKGS_LIST}
xargs -rtd'\n' dnf install -y < /tmp/${PKGS_LIST}
if [[ ! -z ${EXTRA_PKGS_LIST:-} ]]; then
if [[ -s /tmp/${EXTRA_PKGS_LIST} ]]; then
xargs -rtd'\n' dnf --setopt=install_weak_deps=False install -y < /tmp/${EXTRA_PKGS_LIST}
xargs -rtd'\n' dnf install -y < /tmp/${EXTRA_PKGS_LIST}
fi
fi
dnf install -y --enablerepo=epel inotify-tools
Expand Down

0 comments on commit 96eff7f

Please sign in to comment.