From 8bf88bc00eb7efffe1d4334877f6030de14f3b5a Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Mon, 20 Nov 2023 13:31:24 +0200 Subject: [PATCH] fedora: exclude selinux packages for dnf Closes https://github.com/termux/proot-distro/issues/363 --- distro-build/fedora.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/distro-build/fedora.sh b/distro-build/fedora.sh index 8f05475fd..9bc472ea3 100644 --- a/distro-build/fedora.sh +++ b/distro-build/fedora.sh @@ -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"