Skip to content

Commit

Permalink
fedora: exclude selinux packages for dnf
Browse files Browse the repository at this point in the history
Closes #363
  • Loading branch information
sylirre committed Nov 20, 2023
1 parent 234e471 commit 8bf88bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distro-build/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bootstrap_distribution() {
cat <<- EOF | sudo unshare -mpf bash -e -
rm -f "${WORKDIR}/fedora-$(translate_arch "$arch")/fedora-$(translate_arch "$arch")/etc/resolv.conf"
echo "nameserver 1.1.1.1" > "${WORKDIR}/fedora-$(translate_arch "$arch")/fedora-$(translate_arch "$arch")/etc/resolv.conf"
echo "excludepkgs=*selinux*" >> "${WORKDIR}/fedora-$(translate_arch "$arch")/fedora-$(translate_arch "$arch")/etc/dnf/dnf.conf"
mount --bind /dev "${WORKDIR}/fedora-$(translate_arch "$arch")/fedora-$(translate_arch "$arch")/dev"
mount --bind /proc "${WORKDIR}/fedora-$(translate_arch "$arch")/fedora-$(translate_arch "$arch")/proc"
mount --bind /sys "${WORKDIR}/fedora-$(translate_arch "$arch")/fedora-$(translate_arch "$arch")/sys"
Expand Down

0 comments on commit 8bf88bc

Please sign in to comment.