X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-debian-toolbox;h=813e8d37d9e0aca033871e40e27f0a8140a5419f;hp=f978ee15d039244977337ede51e6bc00a217db75;hb=7967276a9bf38337192ca1a342f707f7ad0d9167;hpb=875819cfb91b2b7ed40923eb81f534b94314aa01 diff --git a/build-debian-toolbox b/build-debian-toolbox index f978ee1..813e8d3 100755 --- a/build-debian-toolbox +++ b/build-debian-toolbox @@ -5,16 +5,12 @@ RELEASE=${1:-sid} DISTRO=${2:-debian} toolbox rm -f $RELEASE || true +podman pull docker.io/$DISTRO:$RELEASE 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 @@ -40,7 +36,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 openssh-client + +# autopkgtest +sudo eatmydata apt-get install -y --no-install-recommends autopkgtest qemu-system-x86 qemu-utils genisoimage ' toolbox enter --container $RELEASE