diff --git a/makefiles/containers.mk b/makefiles/containers.mk index 751c20a..b02bd05 100644 --- a/makefiles/containers.mk +++ b/makefiles/containers.mk @@ -8,6 +8,9 @@ $(warning Warning: Docker is not recommended, use Podman instead.) CTN_USERMAP = --user=$(shell id -u):$(shell id -g) -e HOME=/tmp endif +# Ensure PWD is defined for volume mounts (fallback to current directory) +PWD ?= $(CURDIR) + # Packaging OCI image, to build rpm, deb, pacman, tar packages # We changes the keep-id uid/gid for Podman, so that the user inside the container is the same as the user outside. # For Docker, as it doesn't support userns, we use common options, but it may fail...