From 6f2082acb047f14b077ba21d3b22c190d71b8391 Mon Sep 17 00:00:00 2001 From: bgrech Date: Tue, 15 Mar 2022 15:30:58 -0500 Subject: [PATCH] add pkg_commands.d file for centos ostree images --- plugins/pkg_commands.d/centos | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 plugins/pkg_commands.d/centos diff --git a/plugins/pkg_commands.d/centos b/plugins/pkg_commands.d/centos new file mode 100644 index 00000000..1d2fc8d5 --- /dev/null +++ b/plugins/pkg_commands.d/centos @@ -0,0 +1,7 @@ +#!/bin/bash + +# CentOS uses yum/dnf or rpm-ostree(edge images) as the package command +if [[ -x /run/ostree-booted ]]; then + RSTRNT_PKG_CMD=${RSTRNT_PKG_CMD:-rpm-ostree} + RSTRNT_PKG_ARGS=${RSTRNT_PKG_ARGS:-A --idempotent --allow-inactive} +fi