Skip to content

Commit

Permalink
pre-install: Fix service name for cri-o runtime
Browse files Browse the repository at this point in the history
the cri-o runtime uses "crio.service" service name (tested on OCP 4.14)

Related to: confidential-containers#418

Signed-off-by: Lukáš Doktor <[email protected]>
  • Loading branch information
ldoktor committed Aug 21, 2024
1 parent 3cdc158 commit af9eea7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install/pre-install-payload/scripts/reqs-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ function uninstall_artifacts() {

function restart_systemd_service() {
host_systemctl daemon-reload
echo "Restarting ${container_engine}"
host_systemctl restart "${container_engine}"
if [ "${container_engine}" == "cri-o" ]; then
service_name="crio"
else
service_name="${container_engine}"
fi
echo "Restarting ${service_name}"
host_systemctl restart "${service_name}"
}

function configure_nydus_snapshotter_for_containerd() {
Expand Down

0 comments on commit af9eea7

Please sign in to comment.