From 8f5ae9d6add9af65025590a0ead614318931e332 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 15 Oct 2024 15:42:42 +0300 Subject: [PATCH] dev_scripts: Make user networking work in an Ubuntu 24.10 dev environment Try installing `passt`, which is responsible for user networking in later Podman releases. If not installed, building the container image within an Ubuntu 24.10 environment fails with: setup network: could not find pasta, the network namespace can't be configured: exec: "pasta": executable file not found in $PATH Note that this package is not available in older Ubuntu versions. In these cases, we should swallow installation failures and continue. --- dev_scripts/env.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev_scripts/env.py b/dev_scripts/env.py index 3c8230d..abc5a20 100755 --- a/dev_scripts/env.py +++ b/dev_scripts/env.py @@ -145,6 +145,9 @@ ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends podman uidmap slirp4netns \ && rm -rf /var/lib/apt/lists/* +RUN apt-get update \ + && apt-get install -y passt || echo "Skipping installation of passt package" \ + && rm -rf /var/lib/apt/lists/* RUN apt-get update \ && apt-get install -y --no-install-recommends dh-python make build-essential \ git {qt_deps} pipx python3 python3-pip python3-venv dpkg-dev debhelper python3-setuptools \