7 toolbox rm -f $RELEASE || true
8 podman pull docker.io/$DISTRO:$RELEASE
9 toolbox -y create -c $RELEASE --image docker.io/$DISTRO:$RELEASE
11 # can't do that with toolbox run yet, as we need to install sudo first
13 podman exec -it $RELEASE sh -exc '
15 echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io
17 # location based redirector gets it wrong with company VPN; also add deb-src
18 sed -i "s/deb.debian.org/ftp.de.debian.org/; /^deb\b/ { p; s/^deb/deb-src/ }" /etc/apt/sources.list
21 apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin
23 # allow sudo with empty password
24 sed -i "s/nullok_secure/nullok/" /etc/pam.d/common-auth
27 toolbox run --container $RELEASE sh -exc '
28 # otherwise installing systemd fails
29 sudo umount /var/log/journal
33 echo "${ID}-${VERSION_ID:-sid}" | sudo tee /etc/hostname
34 sudo hostname -F /etc/hostname
36 sudo eatmydata apt-get -y dist-upgrade
39 sudo eatmydata apt-get install -y --no-install-recommends build-essential git-buildpackage libwww-perl less vim lintian debhelper manpages-dev git dput pristine-tar bash-completion wget gnupg ubuntu-dev-tools python3-debian fakeroot libdistro-info-perl
42 sudo eatmydata apt-get install -y --no-install-recommends autopkgtest qemu-system-x86 qemu-utils genisoimage
45 toolbox enter --container $RELEASE