Latest systemd is shipping tmpfiles which are meddlig with /dev/ and
/run, which fails on EPERM. That breaks the postinst scripts.
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
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