Remove rootful buildah

This commit is contained in:
2025-11-07 20:18:40 -05:00
parent 71defe9672
commit 622e5d9295

View File

@@ -2010,10 +2010,10 @@ create_mc_apt_container() {
debug "${FUNCNAME[0]}()" "$@"
declare -g CNT
local -a cmds=("$@")
# shellcheck disable=SC2086
# shellcheck disable=SC2016
{ command -v buildah &>/dev/null || install_package buildah &>/dev/null; } &&
CNT=$(sudo buildah from --quiet alpine:edge) &&
sudo buildah run --env MC_REPO="$MC_REPO" --env MC_ARCH="$MC_ARCH" "$CNT" -- sh -c '
CNT=$(buildah from --quiet alpine:edge) &&
buildah run --env MC_REPO="$MC_REPO" --env MC_ARCH="$MC_ARCH" "$CNT" -- sh -c '
apk add --no-cache apt curl gnupg &>/dev/null
curl -fsSL https://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor -o /usr/share/keyrings/jriver-com-archive-keyring.gpg &>/dev/null
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources