diff --git a/deploy/iso/minikube-iso/package/podman/buildah.profile b/deploy/iso/minikube-iso/package/podman/buildah.profile new file mode 100644 index 000000000000..8ca368b053c1 --- /dev/null +++ b/deploy/iso/minikube-iso/package/podman/buildah.profile @@ -0,0 +1,3 @@ +# BUILDAH_NOPIVOT=true disables pivot_root in Buildah, using MS_MOVE instead. +# (Buildah is used by Podman for building container images using a Dockerfile) +export BUILDAH_NOPIVOT=true diff --git a/deploy/iso/minikube-iso/package/podman/podman.mk b/deploy/iso/minikube-iso/package/podman/podman.mk index 77f7c780c825..b5ad703b7a29 100644 --- a/deploy/iso/minikube-iso/package/podman/podman.mk +++ b/deploy/iso/minikube-iso/package/podman/podman.mk @@ -29,6 +29,7 @@ endef define PODMAN_INSTALL_TARGET_CMDS $(INSTALL) -Dm755 $(@D)/bin/podman $(TARGET_DIR)/usr/bin/podman + $(INSTALL) -Dm644 $(BR2_EXTERNAL_MINIKUBE_PATH)/package/podman/buildah.profile $(TARGET_DIR)/etc/profile.d/podman.sh endef $(eval $(generic-package))