Skip to content

Commit

Permalink
build-vm-podman: normalize container name (#962)
Browse files Browse the repository at this point in the history
':', which can be in the spec file name for services-generated
spec files, is forbidden. replace with _ instead.
  • Loading branch information
dirkmueller authored Jan 26, 2024
1 parent f494100 commit ca1163a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-vm-podman
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ vm_verify_options_podman() {
}

vm_startup_podman() {
local name="build_${RECIPEFILE}"
local name="build_${RECIPEFILE//:/-}"
podman rm "$name" >/dev/null 2>&1 || true
local podman_opts=
test -n "$VM_TYPE_PRIVILEGED" && podman_opts="--privileged --cap-add=SYS_ADMIN --cap-add=MKNOD"
Expand All @@ -43,7 +43,7 @@ vm_startup_podman() {
}

vm_kill_podman() {
local name="build_${RECIPEFILE}"
local name="build_${RECIPEFILE//:/-}"
podman stop -t 2 "$name" || true
}

Expand Down Expand Up @@ -79,7 +79,7 @@ vm_sysrq_podman() {
}

vm_wipe_podman() {
local name="build_${RECIPEFILE}"
local name="build_${RECIPEFILE//:/-}"
podman rm "$name" >/dev/null 2>&1 || true

echo "Wiping build root: '$BUILD_ROOT'"
Expand Down

0 comments on commit ca1163a

Please sign in to comment.