Skip to content

Commit

Permalink
Merge pull request #351 from AkihiroSuda/dev
Browse files Browse the repository at this point in the history
init-host: execute dnf with --best
  • Loading branch information
AkihiroSuda authored Dec 10, 2024
2 parents 8dd5ad3 + 216c845 commit 87a30bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion init-host/init-host.root.d/install-podman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
# > dial tcp 10.96.0.1:443: i/o timeout

if command -v dnf >/dev/null 2>&1; then
dnf install -y podman podman-compose slirp4netns
dnf install -y --best podman podman-compose slirp4netns
else
apt-get update -qq
apt-get -qq -y install podman podman-compose slirp4netns
Expand Down
4 changes: 2 additions & 2 deletions init-host/init-host.root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ EOF
sysctl --system

if command -v dnf >/dev/null 2>&1; then
dnf install -y git shadow-utils make jq
dnf install -y --best git shadow-utils make jq
# podman-compose requires EPEL
if grep -q centos /etc/os-release; then
# Works with Rocky and Alma too
dnf -y install epel-release
dnf install -y --best epel-release
fi
else
apt-get update
Expand Down

0 comments on commit 87a30bb

Please sign in to comment.