Skip to content

Commit

Permalink
Fix fcos-base-image Containerfile (#16)
Browse files Browse the repository at this point in the history
nfs-utils-coreos conflicts with nfs-utils, dependency of several packages.

Although some packages can be removed in favor of running their services on top of containers (see coreos/fedora-coreos-tracker#572), nfs-utils is still a dependency for other packages we need to install in the host.
  • Loading branch information
aleskandro authored Aug 23, 2023
1 parent 9c4f4b7 commit 58bb233
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion images/fcos-base-image/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ RUN set -x; arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/'); cat /etc/
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \
&& ostree container commit

# Replacing nfs-utils-coreos with nfs-utils as some required packages (e.g., libvirt) depend on it: see coreos/fedora-coreos-tracker#572
# Also, installing nfs-utils will leave content in /var. `rm -rf /var/*` is a workaround until the packages are fixed.
RUN rpm-ostree uninstall nfs-utils-coreos && rpm-ostree install nfs-utils && rm -rf /var/* && ostree container commit

RUN set -x; PACKAGES_INSTALL="bridge-utils conntrack-tools curl fping iftop iputils iproute mtr nethogs socat"; \
rpm-ostree install $PACKAGES_INSTALL && ostree container commit

RUN set -x; PACKAGES_INSTALL="chrony targetd targetcli"; \
RUN set -x; PACKAGES_INSTALL="chrony targetcli"; \
rpm-ostree install $PACKAGES_INSTALL && rm -rf /var/* && ostree container commit

RUN set -x; PACKAGES_INSTALL="net-tools bind-utils iperf iperf3 iputils mtr ethtool tftp wget ipmitool"; \
Expand Down

0 comments on commit 58bb233

Please sign in to comment.