Skip to content

Commit

Permalink
add pkg_commands.d file for centos ostree images
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeGrech committed Jul 13, 2022
1 parent 7ae3575 commit 23fd9ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/pkg_commands.d/centos
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 23fd9ac

Please sign in to comment.