7 toolbox rm -f $RELEASE || true
8 toolbox -y create -c $RELEASE --image docker.io/$DISTRO:$RELEASE
10 # can't do that with toolbox run yet, as we need to install sudo first
12 podman exec -it $RELEASE sh -exc '
13 # https://bugzilla.redhat.com/show_bug.cgi?id=1785244, https://github.com/containers/toolbox/pull/380
14 if [ ! -e /etc/resolv.conf ]; then
15 ln -sfn /run/host/monitor/resolv.conf /etc/resolv.conf
19 echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io
22 apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin
24 # allow sudo with empty password
25 sed -i "s/nullok_secure/nullok/" /etc/pam.d/common-auth
28 toolbox run --container $RELEASE sh -exc '
29 # otherwise installing systemd fails
30 sudo umount /var/log/journal
34 echo "${ID}-${VERSION_ID}" | sudo tee /etc/hostname
35 sudo hostname -F /etc/hostname
37 sudo eatmydata apt-get -y dist-upgrade
40 sudo eatmydata apt-get install -y --no-install-recommends 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
43 toolbox enter --container $RELEASE