podman/docker: Run bash as login shell

To get bash to source /etc/profile and get the goodness of
/etc/profile/bash_completion.sh, run bash as a login shell.
This commit is contained in:
Michael Cardell Widerkrantz 2025-01-31 15:47:27 +01:00 committed by Mikael Ågren
parent bb18d5b9e9
commit 81ac7bffa0
No known key found for this signature in database
GPG Key ID: E02DA3D397792C46

View File

@ -23,11 +23,11 @@ all:
run: run:
podman run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it \ podman run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it \
$(IMAGE) /usr/bin/bash $(IMAGE) /usr/bin/bash -l
docker-run: docker-run:
docker run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it \ docker run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it \
$(IMAGE) /usr/bin/bash $(IMAGE) /usr/bin/bash -l
run-make: run-make:
podman run --rm --mount type=bind,source="`pwd`/../hw/application_fpga",target=/build -w /build -it \ podman run --rm --mount type=bind,source="`pwd`/../hw/application_fpga",target=/build -w /build -it \