X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-debian-toolbox;h=861dc73a45fa8c76b8f37dbeed373b48f151fa74;hp=ce0318324809fe4cd3fc4e6a1dbb62d3b8490403;hb=2c679a339d3e2eb639d2672227293be868ce9026;hpb=67fe3081fb8bb929ce5c9927286f23eb1fd0099e diff --git a/build-debian-toolbox b/build-debian-toolbox index ce03183..861dc73 100755 --- a/build-debian-toolbox +++ b/build-debian-toolbox @@ -10,16 +10,11 @@ toolbox -y create -c $RELEASE --image docker.io/$DISTRO:$RELEASE # can't do that with toolbox run yet, as we need to install sudo first podman start $RELEASE podman exec -it $RELEASE sh -exc ' -# https://bugzilla.redhat.com/show_bug.cgi?id=1785244, https://github.com/containers/toolbox/pull/380 -if [ ! -e /etc/resolv.conf ]; then - ln -sfn /run/host/monitor/resolv.conf /etc/resolv.conf -fi - # go-faster apt/dpkg echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io -# location based redirector gets it wrong with company VPN -sed -i "s/deb.debian.org/ftp.de.debian.org/" /etc/apt/sources.list +# location based redirector gets it wrong with company VPN; also add deb-src +sed -i "s/deb.debian.org/ftp.de.debian.org/; /^deb\b/ { p; s/^deb/deb-src/ }" /etc/apt/sources.list apt-get update apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin @@ -40,7 +35,10 @@ sudo hostname -F /etc/hostname sudo eatmydata apt-get -y dist-upgrade # development tools -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 +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 + +# autopkgtest +sudo eatmydata apt-get install -y --no-install-recommends autopkgtest qemu-system-x86 qemu-utils genisoimage ' toolbox enter --container $RELEASE