From 3d32d7bb1e22fb28a1fab4d1825e759f4eff163b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 3 Aug 2026 21:17:22 +0200 Subject: [PATCH] build-debian-distrobox: Work around tmpfiles trying to change host files Latest systemd is shipping tmpfiles which are meddlig with /dev/ and /run, which fails on EPERM. That breaks the postinst scripts. --- build-debian-distrobox | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-debian-distrobox b/build-debian-distrobox index e93dceb..3fce8ff 100755 --- a/build-debian-distrobox +++ b/build-debian-distrobox @@ -5,7 +5,9 @@ RELEASE=${1:-sid} DISTRO=${2:-debian} distrobox rm -f $RELEASE || true -distrobox create --image docker.io/$DISTRO:$RELEASE --pull --yes --name $RELEASE --hostname $RELEASE +# tmpfiles are trying to change permissions of bind-mounted /dev and /run +distrobox create --image docker.io/$DISTRO:$RELEASE --pull --yes --name $RELEASE --hostname $RELEASE \ + --pre-init-hooks 'dpkg-divert --add --rename /usr/bin/systemd-tmpfiles; ln -s /bin/true /usr/bin/systemd-tmpfiles' # libglvnd-gles? pdfmerge calibre qt5-qtwayland @@ -17,7 +19,9 @@ fi apt-get update DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade +' +distrobox enter $RELEASE -- sudo sh -exc ' # development tools apt-get install -y --no-install-recommends build-essential git-buildpackage libwww-perl less vim lintian debhelper manpages-dev git pristine-tar bash-completion wget gnupg ubuntu-dev-tools python3-debian fakeroot libdistro-info-perl openssh-client flatpak-xdg-utils jq -- 2.47.3