From 23fd9acb6df92db094598c431ca5f1251c79c98c 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 | 9 +++++++++ 1 file changed, 9 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..02ea2a5c --- /dev/null +++ b/plugins/pkg_commands.d/centos @@ -0,0 +1,9 @@ +#!/bin/bash + +. /etc/os-release + +# CentOS uses 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